Re: Fwd: Re: [users@httpd] Virtual Host Not working
On 05/14/16 18:19, Frank Gingras wrote: On 14/05/16 07:53 PM, phil wrote: On 15/05/2016 6:16 AM, Beech wrote: Forwarded Message Subject: Re: [users@httpd] Virtual Host Not working Date: Sat, 14 May 2016 21:46:41 +0200 From: miguel gonzalez <miguel_3_gonza...@yahoo.es> To: Beech <akbe...@gmail.com>, users@httpd.apache.org I always have used either the ip address or the wildcard * in the virtualhost directive. Have you checked the logs? Beech <akbe...@gmail.com> wrote: I have added a new virtual domain and it's not working. No error messages, just won't connect. I have triple checked the paths and spelling. DNS is propagated and dig returns the correct IP. The other domains work. Here's the setting, it's Apache24: ServerAdmin akbe...@gmail.com DocumentRoot "/usr/local/www/fishing/htdocs" ServerName www.greatlandfishing.com ServerAlias www.greatlandfishing.com ErrorLog "/usr/local/www/fishing/logs/greatlandfishing-error_log" CustomLog "/usr/local/www/fishing/logs/greatlandfishing-access_log" common AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Try changing the above line to: reload apache, it might help . . . Run apachectl -S, define all your vhosts as *:PORT, and show the output from the apachectl -S command after your changes. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org Thanks for your reply. I found the problem, it turned out to be DNS related Not Apache. I cleaned up the virtual config files and all is well. Thanks, Beech - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: Fwd: Re: [users@httpd] Virtual Host Not working
On 14/05/16 07:53 PM, phil wrote: On 15/05/2016 6:16 AM, Beech wrote: Forwarded Message Subject: Re: [users@httpd] Virtual Host Not working Date: Sat, 14 May 2016 21:46:41 +0200 From: miguel gonzalez <miguel_3_gonza...@yahoo.es> To: Beech <akbe...@gmail.com>, users@httpd.apache.org I always have used either the ip address or the wildcard * in the virtualhost directive. Have you checked the logs? Beech <akbe...@gmail.com> wrote: I have added a new virtual domain and it's not working. No error messages, just won't connect. I have triple checked the paths and spelling. DNS is propagated and dig returns the correct IP. The other domains work. Here's the setting, it's Apache24: ServerAdmin akbe...@gmail.com DocumentRoot "/usr/local/www/fishing/htdocs" ServerName www.greatlandfishing.com ServerAlias www.greatlandfishing.com ErrorLog "/usr/local/www/fishing/logs/greatlandfishing-error_log" CustomLog "/usr/local/www/fishing/logs/greatlandfishing-access_log" common AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Try changing the above line to: reload apache, it might help . . . Run apachectl -S, define all your vhosts as *:PORT, and show the output from the apachectl -S command after your changes. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: Fwd: Re: [users@httpd] Virtual Host Not working
On 15/05/2016 6:16 AM, Beech wrote: Forwarded Message Subject: Re: [users@httpd] Virtual Host Not working Date: Sat, 14 May 2016 21:46:41 +0200 From: miguel gonzalez <miguel_3_gonza...@yahoo.es> To: Beech <akbe...@gmail.com>, users@httpd.apache.org I always have used either the ip address or the wildcard * in the virtualhost directive. Have you checked the logs? Beech <akbe...@gmail.com> wrote: I have added a new virtual domain and it's not working. No error messages, just won't connect. I have triple checked the paths and spelling. DNS is propagated and dig returns the correct IP. The other domains work. Here's the setting, it's Apache24: ServerAdmin akbe...@gmail.com DocumentRoot "/usr/local/www/fishing/htdocs" ServerName www.greatlandfishing.com ServerAlias www.greatlandfishing.com ErrorLog "/usr/local/www/fishing/logs/greatlandfishing-error_log" CustomLog "/usr/local/www/fishing/logs/greatlandfishing-access_log" common AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Try changing the above line to: reload apache, it might help . . . -- Regards Phil AllowOverride All DirectoryIndex index.php index.html index.htm Order Allow,Deny Allow from All Does anyone have a suggestion? The other vhosts have almost identical configs and work. Beech - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org I have checked the logs, nothing. I also changed the directive back to *:80, no difference. I'm starting to think I have a dns problem on this FreeBSD box. Thanks for the reply. Beech - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Fwd: Re: [users@httpd] Virtual Host Not working
Forwarded Message Subject: Re: [users@httpd] Virtual Host Not working Date: Sat, 14 May 2016 21:46:41 +0200 From: miguel gonzalez <miguel_3_gonza...@yahoo.es> To: Beech <akbe...@gmail.com>, users@httpd.apache.org I always have used either the ip address or the wildcard * in the virtualhost directive. Have you checked the logs? Beech <akbe...@gmail.com> wrote: I have added a new virtual domain and it's not working. No error messages, just won't connect. I have triple checked the paths and spelling. DNS is propagated and dig returns the correct IP. The other domains work. Here's the setting, it's Apache24: ServerAdmin akbe...@gmail.com DocumentRoot "/usr/local/www/fishing/htdocs" ServerName www.greatlandfishing.com ServerAlias www.greatlandfishing.com ErrorLog "/usr/local/www/fishing/logs/greatlandfishing-error_log" CustomLog "/usr/local/www/fishing/logs/greatlandfishing-access_log" common AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps AllowOverride All DirectoryIndex index.php index.html index.htm Order Allow,Deny Allow from All Does anyone have a suggestion? The other vhosts have almost identical configs and work. Beech - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org I have checked the logs, nothing. I also changed the directive back to *:80, no difference. I'm starting to think I have a dns problem on this FreeBSD box. Thanks for the reply. Beech - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Virtual Host Not working
I always have used either the ip address or the wildcard * in the virtualhost directive. Have you checked the logs? Beechwrote: >I have added a new virtual domain and it's not working. No error >messages, just won't connect. I have triple checked the paths and >spelling. DNS is propagated and dig returns the correct IP. The other >domains work. Here's the setting, it's Apache24: > > > ServerAdmin akbe...@gmail.com > DocumentRoot "/usr/local/www/fishing/htdocs" > ServerName www.greatlandfishing.com > ServerAlias www.greatlandfishing.com > ErrorLog "/usr/local/www/fishing/logs/greatlandfishing-error_log" > CustomLog "/usr/local/www/fishing/logs/greatlandfishing-access_log" >common > AddType application/x-httpd-php .php .phtml > AddType application/x-httpd-php-source .phps > > AllowOverride All > DirectoryIndex index.php index.html index.htm > Order Allow,Deny > Allow from All > > > >Does anyone have a suggestion? The other vhosts have almost identical >configs and work. > >Beech > >- >To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >For additional commands, e-mail: users-h...@httpd.apache.org > - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Virtual Host Not Working
On Mon, Feb 10, 2014 at 10:24 PM, Jim Borland jborl...@calpoly.edu wrote: My server, which is located in the Amazon cloud, was just moved to a new location with a new IP address. Nothing else was changed. However, the Apache Virtual Host, which has worked flawlessly for several years, is broken. Apache server version is: Apache/2.2.16 (Ubuntu). I went to my DNS host and changed the names to point to the new IP address. But now, when I go to the hostname in my browser I end up at the default site instead of the one specified for the virtual host. Here is my config file (httpd-vhosts.conf). Simplify your config: NameVirtualHost *:80 VirtualHost *:80 ServerAdmin jborlan...@gmail.com ServerName ec2-75-101-136-229.compute-1.amazonaws.com DocumentRoot /var/www /VirtualHost Directory /home/jim Order allow,deny Allow from all /Directory VirtualHost *:80 ServerName atascaderoband.org ServerAlias www.atascaderoband.org DocumentRoot /home/jim/atasband /VirtualHost VirtualHost *:80 ServerName www.slocountyband.org ServerAlias slocountyband.org DocumentRoot /home/jim/band /VirtualHost Work now? Cheers Tom - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Virtual Host Not Working
My goodness, that worked! I am blown away! Thank you very much for your help with this. Jim On 2/12/2014 2:58 AM, Tom Evans wrote: On Mon, Feb 10, 2014 at 10:24 PM, Jim Borland jborl...@calpoly.edu wrote: My server, which is located in the Amazon cloud, was just moved to a new location with a new IP address. Nothing else was changed. However, the Apache Virtual Host, which has worked flawlessly for several years, is broken. Apache server version is: Apache/2.2.16 (Ubuntu). I went to my DNS host and changed the names to point to the new IP address. But now, when I go to the hostname in my browser I end up at the default site instead of the one specified for the virtual host. Here is my config file (httpd-vhosts.conf). Simplify your config: NameVirtualHost *:80 VirtualHost *:80 ServerAdmin jborlan...@gmail.com ServerName ec2-75-101-136-229.compute-1.amazonaws.com DocumentRoot /var/www /VirtualHost Directory /home/jim Order allow,deny Allow from all /Directory VirtualHost *:80 ServerName atascaderoband.org ServerAlias www.atascaderoband.org DocumentRoot /home/jim/atasband /VirtualHost VirtualHost *:80 ServerName www.slocountyband.org ServerAlias slocountyband.org DocumentRoot /home/jim/band /VirtualHost Work now? Cheers Tom - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org