ISP Config nginx Directives: For Wordpress

Discussion in 'Installation/Configuration' started by freddie R, Feb 23, 2017.

  1. freddie R

    freddie R New Member

    Hello l want to know the code needed in nginx Directives: for wordpress site. l currently have

    location /phpmyadmin {
    root /usr/share/;
    index index.php index.html index.htm;
    location ~ ^/phpmyadmin/(.+\.php)$ {
    try_files $uri =404;
    root /usr/share/;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param HTTPS on; # <-- add this line
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $request_filename;
    include /etc/nginx/fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 4k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    fastcgi_intercept_errors on;
    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    root /usr/share/;
    location /phpMyAdmin {
    rewrite ^/* /phpmyadmin last;

    but l am getting a 500 error please let me know what to fix
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I used / added only this:
            location / {
                    try_files $uri $uri/ /index.php?q=$uri&$args;
  3. freddie R

    freddie R New Member

Share This Page