Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > ISPConfig 3 Priority Support

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th May 2013, 12:14
maumar maumar is offline
Senior Member
 
Join Date: May 2009
Location: San Costanzo (PU - Italy)
Posts: 126
Thanks: 6
Thanked 11 Times in 11 Posts
Send a message via MSN to maumar Send a message via Skype™ to maumar
Default nginx, wheezy, 3.0.5.2: alias web site issue

hello
i have following issue with nginx and sebian wheezy:
I tried to configure a web alias domain for nginx.
I have attached a screenshot of the configured alias domain, and here it is the conf file

Code:
server {
        listen *:80;


        server_name new.incisivo.it www.new.incisivo.it www.incisivo.it incisivo.it;

        root   /var/www/new.incisivo.it/web;



        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;
        }


       include /var/www/new.incisivo.it/web/nginx.conf;

        location ~ /nginx.conf {
                        deny all;
                        access_log off;
                        log_not_found off;
        }




        if ($http_host ~* "dentista-pavia.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentista-pavia$1 ;
        }

        if ($http_host ~* "www.dentista-pavia.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentista-pavia$1 ;
        }

[...]

as you can easily see, there are the rewrite (it's ok!) but I can't fine any server alias declaration.

When i try url: http://www.dentista-pavia.com/
I get ispconfig default page, as you can yourself try.

I have this and other issue with nginx by the time I have upgraded to 3.0.5.2.
Reply With Quote
Sponsored Links
  #2  
Old 8th May 2013, 12:16
maumar maumar is offline
Senior Member
 
Join Date: May 2009
Location: San Costanzo (PU - Italy)
Posts: 126
Thanks: 6
Thanked 11 Times in 11 Posts
Send a message via MSN to maumar Send a message via Skype™ to maumar
Default

i forget to attach screenshot, please be patient
Attached Images
File Type: png screeshot25.png (14.4 KB, 17 views)
Reply With Quote
  #3  
Old 8th May 2013, 17:11
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
Default

Can you post the full vhost file? I guess there's a second server {} container at the end for the alias domains.
__________________
Falko
--
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
  #4  
Old 13th May 2013, 14:27
maumar maumar is offline
Senior Member
 
Join Date: May 2009
Location: San Costanzo (PU - Italy)
Posts: 126
Thanks: 6
Thanked 11 Times in 11 Posts
Send a message via MSN to maumar Send a message via Skype™ to maumar
Default

Hello Falko
sadly there is no other server {} declaration for alias, here it the complete vhost file:

Code:
server {
        listen *:80;


        server_name new.incisivo.it www.new.incisivo.it www.incisivo.it incisivo.it
                        dentista-pavia.com www.incisivo.it/dentista-pavia;

        root   /var/www/new.incisivo.it/web;



        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;
        }


       include /var/www/new.incisivo.it/web/nginx.conf;

        location ~ /nginx.conf {
                        deny all;
                        access_log off;
                        log_not_found off;
        }




        if ($http_host ~* "dentista-pavia.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentista-pavia$1 ;
        }

        if ($http_host ~* "www.dentista-pavia.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentista-pavia$1 ;
        }

        if ($http_host ~* "dentista-piacenza.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentista-piacenza$1 ;
        }

        if ($http_host ~* "www.dentista-piacenza.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentista-piacenza$1 ;
        }

        if ($http_host ~* "dentistapiacenza.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentistapiacenza$1 ;
        }

        if ($http_host ~* "www.dentistapiacenza.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentistapiacenza$1 ;
        }

        if ($http_host ~* "dentisti-indipendenti-milano.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentisti-indipendenti-milano$1 ;
        }

        if ($http_host ~* "www.dentisti-indipendenti-milano.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentisti-indipendenti-milano$1 ;
        }

        if ($http_host ~* "dentisti-pavia.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentisti-pavia$1 ;
        }

        if ($http_host ~* "www.dentisti-pavia.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentisti-pavia$1 ;
        }

        if ($http_host ~* "dentistiindipendentimilano.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentistiindipendentimilano$1 ;
        }

        if ($http_host ~* "www.dentistiindipendentimilano.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/dentistiindipendentimilano$1 ;
        }

        if ($http_host ~* "sbiancamento-denti-milano.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/sbiancamento-denti-milano$1 ;
        }

        if ($http_host ~* "www.sbiancamento-denti-milano.com$") {
            rewrite ^/(.+)$ http://www.incisivo.it/sbiancamento-denti-milano$1 ;
        }

        index index.html index.htm index.php index.cgi index.pl index.xhtml;



        error_page 400 /error/400.html;
        error_page 401 /error/401.html;
        error_page 403 /error/403.html;
        error_page 404 /error/404.html;
        error_page 405 /error/405.html;
        error_page 500 /error/500.html;
        error_page 502 /error/502.html;
        error_page 503 /error/503.html;
        recursive_error_pages on;
        location = /error/400.html {
            internal;
        }
        location = /error/401.html {
            internal;
        }
        location = /error/403.html {
            internal;
        }
        location = /error/404.html {
            internal;
        }
        location = /error/405.html {
            internal;
        }
        location = /error/500.html {
            internal;
        }
        location = /error/502.html {
            internal;
        }
        location = /error/503.html {
            internal;
        }

        error_log /var/log/ispconfig/httpd/new.incisivo.it/error.log;
        access_log /var/log/ispconfig/httpd/new.incisivo.it/access.log combined;

        ## Disable .htaccess and other hidden files
        location ~ /\. {
            deny all;
            access_log off;
            log_not_found off;
        }

        location = /favicon.ico {
            log_not_found off;
            access_log off;
        }

        location = /robots.txt {
            allow all;
            log_not_found off;
            access_log off;
        }

        location /stats {
            index index.html index.php;
            auth_basic "Members Only";
            auth_basic_user_file /var/www/clients/client4/web1150/web/stats/.htpasswd_stats;
        }

        location ^~ /awstats-icon {
            alias /usr/share/awstats/icon;
        }


        location ~ \.php$ {
            try_files $uri =404;
            include /etc/nginx/fastcgi_params;
            fastcgi_pass 127.0.0.1:10159;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $fastcgi_script_name;
        }


}
Reply With Quote
  #5  
Old 14th May 2013, 19:05
maumar maumar is offline
Senior Member
 
Join Date: May 2009
Location: San Costanzo (PU - Italy)
Posts: 126
Thanks: 6
Thanked 11 Times in 11 Posts
Send a message via MSN to maumar Send a message via Skype™ to maumar
Default

Hello Falko

do you think this is a bug and should I file a bug on bugzilla?
Reply With Quote
  #6  
Old 30th May 2013, 22:19
maumar maumar is offline
Senior Member
 
Join Date: May 2009
Location: San Costanzo (PU - Italy)
Posts: 126
Thanks: 6
Thanked 11 Times in 11 Posts
Send a message via MSN to maumar Send a message via Skype™ to maumar
Default

with a fresh installation:
debian wheezy
Code:
http://www.howtoforge.com/perfect-server-debian-wheezy-nginx-bind-dovecot-ispconfig-3-p5
multiserver, it's ok.
Then, the issue is with upgrade of a
debian7 with 3.0.4.6 -> debian7 with 3.0.5.2
Reply With Quote
  #7  
Old 31st May 2013, 09:16
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,982 Times in 3,903 Posts
 
Default

Did you modify the vhost template file from ispconfig or are there any files in the directory /usr/local/ispconfig/server/conf-custom/ ?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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
More web site, one ssl of them davide.seo Installation/Configuration 3 17th March 2013 12:14
Server hangs, BUG: Bad page state in process lucani Installation/Configuration 1 6th September 2012 18:50
When using auto-subdomain set to www web site get error server not found MrCompTech Installation/Configuration 5 12th July 2010 16:55
how i can open a web site hadisaadeh Installation/Configuration 10 20th January 2006 15:46
testing web site by its external ip address rosa hsiao General 9 12th January 2006 21:32


All times are GMT +2. The time now is 23:58.


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