Nginx wordpress fancy URL or permalink fixing Rumi, November 12, 2013 If your wordpress is installed in the root directory i.e. yourdomain.com, you can use the following directives- location / { try_files $uri $uri/ /index.php?$args; } # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent; location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ { expires max; log_not_found off; } Or if your wordpress is installed inside a sub-directory the directive will be a bit different- location /test/site1 { try_files $uri $uri/ /test/site1/index.php?$args; } # Add trailing slash to */wp-admin requests. rewrite /test/site1/wp-admin$ $scheme://$host$uri/ permanent; Related Administrations Configurations (Linux) ISPConfignginxWordpress
Nginx Reverse Proxy with Sub Directory Mapping May 30, 2023May 30, 2023 Setup Note: My web application has a sub-directory, 192.168.1.8:8088/messages, that I want to expose to the outside world as messages.mysite.com. I’ve gotten half way there but I seem to be stuck. My requirements are as follows Redirect the site from HTTP to HTTPS. As I cannot edit the links the… Read More
Vesta- How to set up master-slave DNS cluster January 28, 2019January 28, 2019 If you are looking for the options to avoid any DNS-related downtime or the way to manage dns across all server you have, you might consider to set up dns cluster. Create user dns-cluster on a server which will be used as dns slave On the second server (slave) with… Read More
Understanding Linux CPU Load November 10, 2012 You might be familiar with Linux load averages already. Load averages are the three numbers shown with the uptime and top commands – they look like this: load average: 0.09, 0.05, 0.01 Most people have an inkling of what the load averages mean: the three numbers represent averages over progressively… Read More