Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name <my domain but i put it away>.com;
- index index.php index.html index.htm;
- access_log /usr/share/nginx/logs/access_log;
- error_log /usr/share/nginx/logs/error_log;
- location / {
- root /usr/share/nginx/html;
- #
- # First attempt to serve request as file, then
- # as directory, then fall back to index.php
- try_files $uri $uri/ /index.php;
- }
- location ~ \.php$ {
- include fastcgi_params;
- root /usr/share/nginx/html;
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement