Got nginx configured and tweaked the fluid variables
This commit is contained in:
parent
1e0be63a7b
commit
92d7b0adce
2 changed files with 56 additions and 2 deletions
|
@ -0,0 +1,54 @@
|
|||
server
|
||||
{
|
||||
listen 80;
|
||||
|
||||
server_name pickles.local;
|
||||
|
||||
access_log /var/log/nginx/pickles.access.log;
|
||||
error_log /var/log/nginx/pickles.error.log;
|
||||
root /usr/share/pickles/bootstrap/public;
|
||||
|
||||
rewrite_log on;
|
||||
|
||||
# Rewrites static content with an appended timestamp
|
||||
location ~ ^/(.+)\.(\d+)\.(css|js|gif|png|jpg|jpeg)$
|
||||
{
|
||||
rewrite ^/(.+)\.(\d+)\.(css|js|gif|png|jpg|jpeg)$ /$1.$3 break;
|
||||
expires max;
|
||||
}
|
||||
|
||||
location /
|
||||
{
|
||||
index index.php;
|
||||
|
||||
# Strips the trailing slash
|
||||
rewrite ^/(.*)/$ /$1 permanent;
|
||||
|
||||
# if file exists return it right away
|
||||
if (-f $request_filename)
|
||||
{
|
||||
expires max;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!-e $request_filename)
|
||||
{
|
||||
rewrite ^/(.+)$ /index.php?request=$1 last;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ index\.php$
|
||||
{
|
||||
try_files $uri =404;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /usr/share/pickles/bootstrap/public$fastcgi_script_name;
|
||||
}
|
||||
|
||||
location ~ /\.ht
|
||||
{
|
||||
deny all;
|
||||
}
|
||||
}
|
|
@ -28,7 +28,7 @@
|
|||
<body>
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container<?php $__module->fluid ? '-fluid' : ''; ?>">
|
||||
<div class="container<?php $__fluid ? '-fluid' : ''; ?>">
|
||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
|
@ -49,7 +49,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container<?php $__module->fluid ? '-fluid' : ''; ?>">
|
||||
<div class="container<?php $__fluid ? '-fluid' : ''; ?>">
|
||||
<div class="content <?php echo $__css_class; ?>">
|
||||
<?php require $__template; ?>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue