Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a default site configuration which will simply return 404, preventing
- # chance access to any other virtualhost.
- server {
- listen 80;
- listen [::]:80;
- server_name widgets;
- access_log /var/log/nginx/widgets.access_log main;
- error_log /var/log/nginx/widgets.error_log info;
- #root folder to look in for webapp:
- root /var/www/localhost/htdocs/widgets;
- #acceptable home pages
- index index.php index.html index.htm;
- #location /widgets{
- location ~* \.php$ {
- try_files $uri =404;
- include /etc/nginx/fastcgi.conf;
- include /etc/nginx/fastcgi_params;
- fastcgi_index index.php;
- fastcgi_pass 127.0.0.1:9000;
- # }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement