Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Configuration for Site2 without a domain
- server {
- listen 80;
- server_name site2.com alias site2.com.XX.XX-XXX-XXX.providerurl.com;
- root /var/www/vhosts/site2.com/httpdocs/Symfony/web;
- error_log /var/log/nginx/site2.error.log;
- access_log /var/log/nginx/site2.access.log;
- # server-side compression
- gzip on;
- gzip_min_length 1100;
- gzip_buffers 4 8k;
- gzip_proxied any;
- gzip_types text/plain application/xml text/css text/js application/x-javascript text/javascript application/json;
- location / {
- index app_dev.php;
- if (-f $request_filename) {
- break;
- }
- rewrite ^(.*)$ /app_dev.php last;
- }
- # set a nice expire for assets
- location ~* "^.+\.(jpe?g|gif|css|png|js|ico|pdf|zip|tar|t?gz|mp3|wav|swf)$" {
- expires 360d;
- add_header Cache-Control public;
- access_log off;
- log_not_found off;
- }
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- location ~* \.php {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_read_timeout 600;
- fastcgi_pass php53;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement