Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 23rd October 2012, 21:06
maumar maumar is offline
Senior Member
Join Date: May 2009
Location: San Costanzo (PU - Italy)
Posts: 137
Thanks: 8
Thanked 11 Times in 11 Posts
Send a message via MSN to maumar Send a message via Skype™ to maumar

Hallo Falko

Originally Posted by falko View Post
This is what I use in the nginx Directives field on the Options tab in ISPConfig for a Wordpress site (with the W3 Total Cache plugin):
what i am trying to do is to insert your directives into conf-custom
it's a bad idea, I know, but only admin can use option tab and this is an issue for my customer.

I have only a problem, now: I need that
include /var/www/<tmpl_var name='domain'>/web/nginx.conf;
is created empty during hosting creation to avoid "file not found" error.

How can I do it?

Mit freundlichen Grüßen
My best regards
Reply With Quote
Sponsored Links
Old 6th November 2013, 22:43
PermaNoob PermaNoob is offline
Senior Member
Join Date: Jan 2007
Posts: 194
Thanks: 12
Thanked 5 Times in 5 Posts

Originally Posted by till View Post
The nginx configuration for php is done by ispconfig, so you should not duplicate this with your manual configuration or nginx will fail. The guide you followed is for a complete nginx configuration for servers without a controlpanel thats uses different paths etc., if you use a controlpanel like ispconfig, then dont touch nginx.conf file or site configuration file. Instaed you just add the wordpress rules in the custom nginx directives field in ispconfig.
Can someone give me the specific code which needs to go in the custom nginx directives field to get wordpress to work on Centos 6.4, nginx, ispconfig

I currently have ERROR 500 on wordpress sites
Reply With Quote
Old 6th November 2013, 22:46
Steveorevo Steveorevo is offline
Join Date: Feb 2010
Posts: 37
Thanks: 8
Thanked 6 Times in 5 Posts

I use these nginx directives in the "options" tab. This is to work like typical post name permalink settings one would use with WordPress on Apache...

# Secure nginx.conf file
location /nginx.conf {
deny all;

# block s2Member log file ***if you use the s2Member plugin
location ~ /\.log {
deny all;

# Include W3TC nginx.conf file ***if you use w3tc cache
#include /var/www/clients/client1/web1/web/nginx.conf;

# Support permalinks
location / {
try_files $uri $uri/ /index.php?$args;

rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;

rewrite ^/files/(.+) /wp-includes/ms-files.php?file=$1 last;
location ^~ /files/ {
rewrite ^.*/files/(.+)$ /wp-includes/ms-files.php?file=$1 last;

# Rewrite multisite '.../wp-.*' and '.../*.php'.
if (!-e $request_filename) {
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;

Last edited by Steveorevo; 6th November 2013 at 22:47. Reason: clarifications
Reply With Quote
The Following User Says Thank You to Steveorevo For This Useful Post:
PermaNoob (6th November 2013)
Old 6th November 2013, 23:18
PermaNoob PermaNoob is offline
Senior Member
Join Date: Jan 2007
Posts: 194
Thanks: 12
Thanked 5 Times in 5 Posts

Thanks! that got it...however...

After inserting that code from Steveorevo, the wordpress install worked and completed.

However, even though I deleted the index.html file, the index.php file won't load--not even if I put in site.com/index.php. Other files in the directory will load, and I put in a text file to make sure nginx was directing to the correct directory.

nvm, now it started working--I guess it just needed time for the conf updates.

Last edited by PermaNoob; 7th November 2013 at 00:03.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Updating and Uploading to Wordpress website on ISPConfig3 - Fedora 13 MrCompTech Tips/Tricks/Mods 8 25th August 2014 15:18
wordpress multisite a0011010011 Installation/Configuration 8 14th February 2012 23:44
ISPConfig 3.x - First Steps (Creating Web Sites, Email Addresses, Etc.) sighkick Suggest HOWTO 18 7th October 2010 01:12
ispconfig wordpress and directory/file permissions willebanks Installation/Configuration 4 9th March 2010 22:52
wordpress u Amorphous Installation/Configuration 2 10th July 2009 11:00

All times are GMT +2. The time now is 13:35.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.