Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

medsha on "Permalinks Nginx not working - Help required"

$
0
0

Hey Rahul,

This indeed finally solved the problem. I took care of phpmyadmin and the problem is finally solved!

This is the current code I use that allows my website to use proper permalinks:

server {
        server_name 3rabgamer.net;

        root /var/www;
        index index.php;

        location / {
                try_files $uri $uri/ /index.php?$args;
        }

        location ~ \.php$ {
		include 	/etc/nginx/fastcgi_params;
		fastcgi_pass  	127.0.0.1:9000;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }

	location /phpmyadmin {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/phpmyadmin/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
               }
               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /phpMyAdmin {
               rewrite ^/* /phpmyadmin last;
        }

}

This is the code in the /sites-available/default file. Thanks for your help guys.


Viewing all articles
Browse latest Browse all 26892

Trending Articles