Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name www.foobar.com;
- rewrite ^/(.*) http://foobar.com/$1 permanent;
- }
- server {
- listen 80;
- server_name foobar.com;
- access_log /var/log/nginx/access.log;
- root .../httpdocs;
- location / {
- root .../httpdocs;
- index index.php;
- }
- error_page 404 /404.html;
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php-fpm.sock;
- fastcgi_index index.php;
- include /etc/nginx/fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement