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 17th September 2012, 12:07
Jamira40 Jamira40 is offline
Junior Member
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nginx Subdomain index.html problem


I just install NGINX + ISPConfig3 but i have problems with subdomains.
I just create one over Admin. Redirection no flag or last but when i have
index.html i cant access subdomain like http://some.mysite.com only with /index.html

BUT when i have index.php i can access subdomain without /index.php

So where is problem? Why i can access subdomain without /index.html and nginx send me Error 500 but with index.php no...

server {
        listen *:80;
        server_name MYDOMAINl.com *.MYDOMAIN.com game.MYDOMAIN.com;

        root   /var/www/MYDOMAIN/web;
        if ($http_host ~* "^game.MYDOMAIN.com$") {
            rewrite ^/(.+)$ /subtest/$1 last;
        index index.html index.htm index.php index.cgi index.pl index.xhtml;
Reply With Quote
Sponsored Links
Old 17th September 2012, 13:28
Jamira40 Jamira40 is offline
Junior Member
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

+ Additional info

When i have in /var/www/MYDOMAIN/web file index.html
and index.html in my subdomain folder

== Work

But when in my root /var/www/MYDOMAIN/web have index.php

and in subdomain folder different type like index.html ISPConfig 3 redirect me to .php

== Error 404

So how to setup subdomains on NGINX with ISPConfig 3 without this problems?
Reply With Quote
Old 18th September 2012, 13:41
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts

Can you post the full nginx vhost?

Are there any errors in the website's error log?
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Mail send/recieve problem DKLeader Installation/Configuration 14 22nd February 2011 15:13
Problem with subdomain nikoladd General 1 14th June 2009 10:27
Problem with SubDomain/ index.php & internal server error. thecaptainjs Installation/Configuration 2 22nd February 2007 21:17
Another problem add subdomain dnikola Installation/Configuration 3 15th May 2006 17:40

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

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