Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8080;
- #listen [::]:80 default ipv6only=on;
- server_name www.muycomputerpro.com muycomputerpro.com;
- root /home/tpnet/domains/muycomputerpro.com/public_html;
- access_log /home/tpnet/domains/muycomputerpro.com/logs/access.log;
- error_log /home/tpnet/domains/muycomputerpro.com/logs/error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?q=$uri&$args;
- # if the requested file exists, return it immediately
- if (-f $request_filename) {
- break;
- }
- # all other requests go to WordPress
- if (!-e $request_filename) {
- rewrite . /index.php last;
- }
- }
- location ~ \.php$ {
- fastcgi_index index.php;
- try_files $uri =403;
- fastcgi_pass unix:/var/run/php5-fpm-tpnet.sock;
- include fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement