Giving WordPress its own subdirectory – nginx

I want to move WordPress installation to a subdirectory without affecting site url – https://wordpress.org/support/article/giving-wordpress-its-own-directory/ (method 1) The article contains only instructions for Apache2. How would it translate to nginx site configuration? <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteCond %{REQUEST_URI} !^/my_subdir/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /my_subdir/$1 RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteRule … Read more

Mysterious HTTP 404 header in my own scripts

I have a WordPress 3.5.1 + nginx configuration. Its nginx configuration is this: server { root /mysite/public_html; server_name wp.mysite; location / { try_files $uri $uri/ /index.php; index index.php index.html index.htm; } location ~ \.php(.*)$ { try_files $uri =404; include /etc/nginx/fastcgi_params; if ($uri !~ “^/uploads/”) { fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket; } fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /mysite/public_html$fastcgi_script_name; … Read more

Subdirectory multisite – only root admin available on NGINX

I’m trying to set up a multisite subdirectory install on NGINX, with WordPress core in its own subdirectory, and running into some trouble. I’m using this file structure: /home/site/dev.site.com/current/public/ — path to webroot /home/site/dev.site.com/current/public/wp/ — path to WP root /home/site/dev.site.com/current/public/wp/wp-admin/ — path to WP admin root My desired URL structure is: dev.site.com/wp-admin/network/ — network admin … Read more

Cant get wordpress to work on subdirectory

I have an ubuntu server. I already had nginx and some page there which works. I wanted to add wordpress on /blog path I installed wordpress using this setup https://ubuntu.com/tutorials/install-and-configure-wordpress#1-overview (I didnt start step 7 because i cant get the page to show up) With the setup wordpress lives in /srv/www/wordpress where i see index.php … Read more

Does running WordPress on Nginx do “squat” for its performance?

This article states: If you aren’t already using a PHP opcode cache and WordPress caching plugin, nginx will do squat for your WordPress-based website’s performance. Could someone elaborate on what the author means. I’m currently running a vanilla install of wordpress on my Apache2 webserver. I’m considering migrating a number of my other sites (non-wordpress) … Read more