mojo version
core
perl v5.24.3, freebsd
Mojolicious 7.58, Doughnut
Optional
EV 4.0+ / 4.22
IO::Socket::Socks 0.64+ / n.a.
IO::Socket::SSL 1.94+ / 2.051
Net::DNS::Native 0.15+ / n/a
Role::Tiny 2.000001+ / 2.000006
AddHandler cgi-script .pl
Options +ExecCGI
IndexIgnore *
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/public/%{REQUEST_URI} -f
RewriteRule ^(.*) public/$1 [L]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule ^(.*) script/premium_career_scout.pl [L]
package PremiumCareerScout;
use Mojo::Base 'Mojolicious';
# This method will run once at server start
sub startup {
my $self = shift;
# Documentation browser under "/perldoc"
$self->plugin('PODRenderer');
# Router
my $r = $self->routes;
# Normal route to controller
$r->get('/')->to('Portal#main');
$r->get('/faq')->to('Portal#faq');
$r->get('/contacts')->to('Portal#contacts');
$r->get('/jobsuchmaschinen')->to('Portal#jobsuchmaschinen');
}
1;
If I call https://mojo.premiumcareerscout.ch/
I get the correct page. I also checked if the css and js files are reachable...
everything seems to be ok!
But on the right upper side of the page I have three links
1.) /faq
2.) /contacts
3.) /jobsuchmaschinen
If I click on such a link, nothing happens. If I do the same on the developing computer
with morbo, everything is working.
<!-- Dieses Template enthält das Layout für die Portal-Seite -->
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/custom.css">
<link rel="stylesheet" type="text/css" href="/css/stickyFooter.css">
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css">
<title><%= title %></title>
</head>
<body>
<div class="container">
<!-- Laden der Navigation oben -->
<%= include 'layouts/navbarV003' %>
<!-- Laden der linken Navigation -->
<%= include 'layouts/leftSideBarV003' %>
<!-- Center Column -->
<div class="col-sm-6">
<%== $content %>
</div>
<!-- Laden der rechten Navigation -->
<%= include 'layouts/rightSideBarV003' %>
</div>
</body>
</html>
Code h <!-- Right Column -->
<div class="col-sm-3">
<!-- Form -->
<!-- List-Group Panel -->
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title"><span class="glyphicon glyphicon-question-sign"></span> Support</h1>
</div>
<div class="list-group">
<a href="/faq" class="list-group-item">FAQ's</a>
<a href="/contacts" class="list-group-item">Kontakt</a>
<!-- <a href="#" class="list-group-item">Dynamically Innovate</a> -->
<!-- <a href="#" class="list-group-item">Objectively Innovate</a> -->
<!-- <a href="#" class="list-group-item">Proactively Envisioned</a> -->
</div>
</div>
<!-- List-Group Panel -->
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title"><span class="glyphicon glyphicon-triangle-right"></span> Artikel</h1>
</div>
<div class="list-group">
<a href="/jobsuchmaschinen" class="list-group-item">Jobsuchmaschinen</a>
<!-- <a href="/cgi-bin/contacts" class="list-group-item">Kontakt</a> -->
<!-- <a href="#" class="list-group-item">Dynamically Innovate</a> -->
<!-- <a href="#" class="list-group-item">Objectively Innovate</a> -->
<!-- <a href="#" class="list-group-item">Proactively Envisioned</a> -->
</div>
</div>
</div><!--/Right Column -->
ier eingeben...
sub contacts{
my $self = shift;
my $content = '
<!-- Heading -->
<div>
<h1 class="page-header">Kontakt</h1>
</div>
<!-- /.row -->
Bei Fragen jeglicher Art wenden Sie sich bitte per
<a href="mailto:supportemail-address">E-Mail</a> an unseren Support<br>
support-email-address.ch
<br><br>Herzlichen Dank<br><br>
Ihr sender
';
$self->render( content => $content );
}
Code hier eingeben...[Tue Dec 26 22:08:35 2017] [debug] GET "/"
[Tue Dec 26 22:08:35 2017] [debug] Routing to controller "PremiumCareerScout::Controller::Portal" and action "main"
[Tue Dec 26 22:08:35 2017] [debug] Rendering template "portal/main.html.ep"
[Tue Dec 26 22:08:35 2017] [debug] Rendering template "layouts/portal.html.ep"
[Tue Dec 26 22:08:35 2017] [debug] Rendering template "layouts/navbarV003.html.ep"
[Tue Dec 26 22:08:35 2017] [debug] Rendering template "layouts/leftSideBarV003.html.ep"
[Tue Dec 26 22:08:35 2017] [debug] Rendering template "layouts/rightSideBarV003.html.ep"
[Tue Dec 26 22:08:35 2017] [debug] 200 OK (0.023922s, 41.803/s)
[Tue Dec 26 22:08:39 2017] [debug] GET "/"
[Tue Dec 26 22:08:39 2017] [debug] Routing to controller "PremiumCareerScout::Controller::Portal" and action "main"
[Tue Dec 26 22:08:39 2017] [debug] Rendering template "portal/main.html.ep"
[Tue Dec 26 22:08:39 2017] [debug] Rendering template "layouts/portal.html.ep"
[Tue Dec 26 22:08:39 2017] [debug] Rendering template "layouts/navbarV003.html.ep"
[Tue Dec 26 22:08:39 2017] [debug] Rendering template "layouts/leftSideBarV003.html.ep"
[Tue Dec 26 22:08:39 2017] [debug] Rendering template "layouts/rightSideBarV003.html.ep"
[Tue Dec 26 22:08:39 2017] [debug] 200 OK (0.019665s, 50.852/s)
[Tue Dec 26 22:08:42 2017] [debug] GET "/"
[Tue Dec 26 22:08:42 2017] [debug] Routing to controller "PremiumCareerScout::Controller::Portal" and action "main"
[Tue Dec 26 22:08:42 2017] [debug] Rendering template "portal/main.html.ep"
[Tue Dec 26 22:08:42 2017] [debug] Rendering template "layouts/portal.html.ep"
[Tue Dec 26 22:08:42 2017] [debug] Rendering template "layouts/navbarV003.html.ep"
[Tue Dec 26 22:08:42 2017] [debug] Rendering template "layouts/leftSideBarV003.html.ep"
[Tue Dec 26 22:08:42 2017] [debug] Rendering template "layouts/rightSideBarV003.html.ep"
[Tue Dec 26 22:08:42 2017] [debug] 200 OK (0.020633s, 48.466/s)
[Tue Dec 26 22:08:44 2017] [debug] GET "/"
[Tue Dec 26 22:08:44 2017] [debug] Routing to controller "PremiumCareerScout::Controller::Portal" and action "main"
[Tue Dec 26 22:08:44 2017] [debug] Rendering template "portal/main.html.ep"
[Tue Dec 26 22:08:44 2017] [debug] Rendering template "layouts/portal.html.ep"
[Tue Dec 26 22:08:44 2017] [debug] Rendering template "layouts/navbarV003.html.ep"
[Tue Dec 26 22:08:44 2017] [debug] Rendering template "layouts/leftSideBarV003.html.ep"
[Tue Dec 26 22:08:44 2017] [debug] Rendering template "layouts/rightSideBarV003.html.ep"
[Tue Dec 26 22:08:44 2017] [debug] 200 OK (0.024079s, 41.530/s)
$c->app->log->info("Env $_: $ENV{$_}") foreach keys %ENV;
$ env PATH_INFO=/ mojoContent-Length: 21Content-Type: text/html;charset=UTF-8Status: 200 OKDate: Wed, 27 Dec 2017 08:33:12 GMTYour Mojo is working!
$ env mojoUsage: APPLICATION COMMAND [OPTIONS]mojo versionmojo generate lite_app./myapp.pl daemon -m production -l http://*:8080./myapp.pl get /foo./myapp.pl routes -vTip: CGI and PSGI environments can be automatically detected very often andwork without commands.Options (for all commands):-h, --help Get more information on a specific command--home <path> Path to home directory of your application, defaults tothe value of MOJO_HOME or auto-detection-m, --mode <name> Operating mode for your application, defaults to thevalue of MOJO_MODE/PLACK_ENV or "development"Commands:cgi Start application with CGIcpanify Upload distribution to CPANdaemon Start application with HTTP and WebSocket servereval Run code against applicationgenerate Generate files and directories from templatesget Perform HTTP requestinflate Inflate embedded files to real filesprefork Start application with pre-forking HTTP and WebSocket serverpsgi Start application with PSGIreplget Perform HTTP requests in a REPLroutes Show available routessendgrid Sendgrid APItest Run testsversion Show versions of available modulesSee 'APPLICATION help COMMAND' for more information on a specific command.
$ env mojo cgiStatus: 200 OKContent-Length: 21Content-Type: text/html;charset=UTF-8Date: Wed, 27 Dec 2017 08:47:54 GMTYour Mojo is working!
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscribe@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.
Code hier eingeben...$self->hook( before_dispatch => sub {