I'm using the following nginx Directives in my ISPConfig for one of my websites where I run WordPress and it works fine.
Code:
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;
}
# Deny public access to wp-config.php
location ~* wp-config.php {
deny all;
}
I'm trying to figure out how can I setup nginx rewrite so I can install another CMS (WordPress, Joomla, etc.) within same website, in another folder. Anyone has similar setup, please advise?
Recent comments
4 hours 45 min ago
9 hours 38 min ago
18 hours 30 min ago
19 hours 30 min ago
23 hours 17 min ago
1 day 31 min ago
1 day 4 hours ago
1 day 11 hours ago
1 day 20 hours ago
1 day 21 hours ago