Nginx Subdomain index.html problem

Discussion in 'Installation/Configuration' started by Jamira40, Sep 17, 2012.

  1. Jamira40

    Jamira40 New Member


    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 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 *;
            root   /var/www/MYDOMAIN/web;
            if ($http_host ~* "^$") {
                rewrite ^/(.+)$ /subtest/$1 last;
            index index.html index.htm index.php index.cgi index.xhtml;
  2. Jamira40

    Jamira40 New Member

    + 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?
  3. falko

    falko Super Moderator ISPConfig Developer

    Can you post the full nginx vhost?

    Are there any errors in the website's error log?

Share This Page