You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stephen <st...@roissy.ca> on 2020/04/30 19:39:35 UTC

[users@httpd] Problem new virtual host

I have a standard LAMP for development.

I set up a new virtual host about once every two years and always struggle.

I have added the web site to my hosts file and direct to my server. I 
have a dozen entries.

I have updated my virtual hosts Apache file

I can ping the new virtual host just fine.

But both Brave and Firefox raise an error saying that the host cannot be 
reached?

Firefox:

Unable to connect

Firefox can’t establish a connection to the server at roissystudiotest.ca.

Brave:


  This site can’t be reached

*www.roissystudiotest.ca*refused to connect.



I was getting the Apache default page but corrected the file permissions 
to 755.



Any and all help welcome!

-- 
Stephen
www.roissy.ca


Re: [users@httpd] Problem new virtual host

Posted by Mike Starr <st...@gmail.com>.
Thanks, Stepehen.

On Thu, Apr 30, 2020 at 2:59 PM Stephen <st...@roissy.ca> wrote:

> I can ping both roissystudiotest.ca and www.roissystudiotest.ca
>
> The host file entries:
>
> 192.168.0.77    roissystudiotest.ca
> 192.168.0.77    www.roissystudiotest.ca
>
> The virtual-sites.conf file:
>
> <VirtualHost *:80>
>     ServerAdmin webmaster@localhost
>     DocumentRoot /home/stephen/www/roissy.ca/public_html/roissystudio.ca
>     ServerName www.roissystudiotest.ca
>     <Directory /home/stephen/www/roissy.ca/public_html/roissystudio.ca>
>         DirectoryIndex index.php
>             AllowOverride All
>         Require all granted
>     </Directory>
>     ErrorLog /home/stephen/www/
> roissy.ca/public_html/roissystudio/error.log
>     TransferLog /home/stephen/www/
> roissy.ca/public_html/roissystudio/transfer.log
> </VirtualHost>
>
> Note: My directory structure follows the way my web host service sets up
> directories. My first site is at the top, and additional sites are sub
> directories.
>
>
> Stephenwww.roissy.ca
>
> On 2020-04-30 5:24 p.m., edflecko . wrote:
>
> Can you ping both roissystudiotest.ca and www.roissystudiotest.ca?
>
> Do you have something like:
>
>     ServerName roissystudiotest.ca
>     ServerAlias www. roissystudiotest.ca
>
> in your vhost file?
>
> Do you have an index file, of some sort, in the virtual home directory?
>
> Ed
>
> On Thu, Apr 30, 2020 at 12:40 PM Stephen <st...@roissy.ca> wrote:
>
>> I have a standard LAMP for development.
>>
>> I set up a new virtual host about once every two years and always
>> struggle.
>>
>> I have added the web site to my hosts file and direct to my server. I
>> have a dozen entries.
>>
>> I have updated my virtual hosts Apache file
>>
>> I can ping the new virtual host just fine.
>>
>> But both Brave and Firefox raise an error saying that the host cannot be
>> reached?
>>
>> Firefox:
>>
>> Unable to connect
>>
>> Firefox can’t establish a connection to the server at roissystudiotest.ca
>> .
>>
>> Brave:
>> This site can’t be reached
>>
>> *www.roissystudiotest.ca <http://www.roissystudiotest.ca>* refused to
>> connect.
>>
>>
>>
>> I was getting the Apache default page but corrected the file permissions
>> to 755.
>>
>>
>>
>> Any and all help welcome!
>>
>> --
>> Stephenwww.roissy.ca
>>
>>

Re: [users@httpd] Problem new virtual host

Posted by Stephen <st...@roissy.ca>.
I can ping both roissystudiotest.ca <http://roissystudiotest.ca> and 
www.roissystudiotest.ca <http://www.roissystudiotest.ca>

The host file entries:

192.168.0.77    roissystudiotest.ca
192.168.0.77    www.roissystudiotest.ca

The virtual-sites.conf file:

<VirtualHost *:80>
     ServerAdmin webmaster@localhost
     DocumentRoot /home/stephen/www/roissy.ca/public_html/roissystudio.ca
     ServerName www.roissystudiotest.ca
     <Directory /home/stephen/www/roissy.ca/public_html/roissystudio.ca>
         DirectoryIndex index.php
             AllowOverride All
         Require all granted
     </Directory>
     ErrorLog /home/stephen/www/roissy.ca/public_html/roissystudio/error.log
     TransferLog 
/home/stephen/www/roissy.ca/public_html/roissystudio/transfer.log
</VirtualHost>

Note: My directory structure follows the way my web host service sets up 
directories. My first site is at the top, and additional sites are sub 
directories.


Stephen
www.roissy.ca

On 2020-04-30 5:24 p.m., edflecko . wrote:
> Can you ping both roissystudiotest.ca <http://roissystudiotest.ca> and 
> www.roissystudiotest.ca <http://www.roissystudiotest.ca>?
>
> Do you have something like:
>
>     ServerName roissystudiotest.ca <http://roissystudiotest.ca>
>     ServerAlias www. roissystudiotest.ca <http://roissystudiotest.ca>
>
> in your vhost file?
>
> Do you have an index file, of some sort, in the virtual home directory?
>
> Ed
>
> On Thu, Apr 30, 2020 at 12:40 PM Stephen <stephen@roissy.ca 
> <ma...@roissy.ca>> wrote:
>
>     I have a standard LAMP for development.
>
>     I set up a new virtual host about once every two years and always
>     struggle.
>
>     I have added the web site to my hosts file and direct to my
>     server. I have a dozen entries.
>
>     I have updated my virtual hosts Apache file
>
>     I can ping the new virtual host just fine.
>
>     But both Brave and Firefox raise an error saying that the host
>     cannot be reached?
>
>     Firefox:
>
>     Unable to connect
>
>     Firefox can’t establish a connection to the server at
>     roissystudiotest.ca <http://roissystudiotest.ca>.
>
>     Brave:
>
>
>       This site can’t be reached
>
>     *www.roissystudiotest.ca <http://www.roissystudiotest.ca>*refused
>     to connect.
>
>
>
>     I was getting the Apache default page but corrected the file
>     permissions to 755.
>
>
>
>     Any and all help welcome!
>
>     -- 
>     Stephen
>     www.roissy.ca  <http://www.roissy.ca>
>

Re: [users@httpd] Problem new virtual host

Posted by Mike Starr <st...@gmail.com>.
Not that I'm aware of. I mean, I do, but I don't know where it is. Can you
help me locate it?

Mike

On Thu, Apr 30, 2020 at 2:25 PM edflecko . <ed...@gmail.com> wrote:

> Can you ping both roissystudiotest.ca and www.roissystudiotest.ca?
>
> Do you have something like:
>
>     ServerName roissystudiotest.ca
>     ServerAlias www. roissystudiotest.ca
>
> in your vhost file?
>
> Do you have an index file, of some sort, in the virtual home directory?
>
> Ed
>
> On Thu, Apr 30, 2020 at 12:40 PM Stephen <st...@roissy.ca> wrote:
>
>> I have a standard LAMP for development.
>>
>> I set up a new virtual host about once every two years and always
>> struggle.
>>
>> I have added the web site to my hosts file and direct to my server. I
>> have a dozen entries.
>>
>> I have updated my virtual hosts Apache file
>>
>> I can ping the new virtual host just fine.
>>
>> But both Brave and Firefox raise an error saying that the host cannot be
>> reached?
>>
>> Firefox:
>>
>> Unable to connect
>>
>> Firefox can’t establish a connection to the server at roissystudiotest.ca
>> .
>>
>> Brave:
>> This site can’t be reached
>>
>> *www.roissystudiotest.ca <http://www.roissystudiotest.ca>* refused to
>> connect.
>>
>>
>>
>> I was getting the Apache default page but corrected the file permissions
>> to 755.
>>
>>
>>
>> Any and all help welcome!
>>
>> --
>> Stephenwww.roissy.ca
>>
>>

Re: [users@httpd] Problem new virtual host

Posted by "edflecko ." <ed...@gmail.com>.
Can you ping both roissystudiotest.ca and www.roissystudiotest.ca?

Do you have something like:

    ServerName roissystudiotest.ca
    ServerAlias www. roissystudiotest.ca

in your vhost file?

Do you have an index file, of some sort, in the virtual home directory?

Ed

On Thu, Apr 30, 2020 at 12:40 PM Stephen <st...@roissy.ca> wrote:

> I have a standard LAMP for development.
>
> I set up a new virtual host about once every two years and always struggle.
>
> I have added the web site to my hosts file and direct to my server. I have
> a dozen entries.
>
> I have updated my virtual hosts Apache file
>
> I can ping the new virtual host just fine.
>
> But both Brave and Firefox raise an error saying that the host cannot be
> reached?
>
> Firefox:
>
> Unable to connect
>
> Firefox can’t establish a connection to the server at roissystudiotest.ca.
>
> Brave:
> This site can’t be reached
>
> *www.roissystudiotest.ca <http://www.roissystudiotest.ca>* refused to
> connect.
>
>
>
> I was getting the Apache default page but corrected the file permissions
> to 755.
>
>
>
> Any and all help welcome!
>
> --
> Stephenwww.roissy.ca
>
>

Re: [users@httpd] Problem new virtual host

Posted by Rich Bowen <rb...@rcbowen.com>.
On Fri, May 1, 2020, 17:22 @lbutlr <kr...@kreme.com> wrote:

> On 01 May 2020, at 08:55, Rich Bowen <rb...@rcbowen.com> wrote:
> > The fact that you can "ping" it seems to point to options 2 or 3 in that
> list.
>
> Maybe. Ping doesn’t require DNS.
>

Sure. If you have the mapping in your host file as indicated. That was more
shorthand for "the ip address is wrong" which seems not to be the case.

Re: [users@httpd] Problem new virtual host

Posted by "@lbutlr" <kr...@kreme.com>.
On 01 May 2020, at 08:55, Rich Bowen <rb...@rcbowen.com> wrote:
> The fact that you can "ping" it seems to point to options 2 or 3 in that list.

Maybe. Ping doesn’t require DNS.


-- 
I WILL STOP TALKING ABOUT THE TWELVE INCH PIANIST Bart chalkboard Ep.
	3F07



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem new virtual host

Posted by Rich Bowen <rb...@rcbowen.com>.

On 4/30/20 3:39 PM, Stephen wrote:
> I have a standard LAMP for development.
> 
> I set up a new virtual host about once every two years and always struggle.
> 
> I have added the web site to my hosts file and direct to my server. I 
> have a dozen entries.
> 
> I have updated my virtual hosts Apache file
> 
> I can ping the new virtual host just fine.
> 
...
> 
>   This site can’t be reached
> 
> *www.roissystudiotest.ca*refused to connect.


These error messages don't indicate an Apache configuration problem, but 
a network problem. That is, "refused to connect" means the problem 
exists *before* it ever talked to Apache.

So the problem is (almost certainly) one of the following:

* Name doesn't map to right IP address
* Server is not running on that particular IP address (ie, is shut down, 
on wrong port)
* Firewall doesn't permit connecting to :80 on that particular IP address

The fact that you can "ping" it seems to point to options 2 or 3 in that 
list.

-- 
Rich Bowen - rbowen@rcbowen.com
http://rcbowen.com/
@rbowen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem new virtual host

Posted by Stephen <st...@roissy.ca>.
I checked my other virtual sites and I cannot connect to any of them.

Clearly, I have broken something, but I have no idea as to what.

Stephen
www.roissy.ca

On 2020-04-30 3:39 p.m., Stephen wrote:
>
> I have a standard LAMP for development.
>
> I set up a new virtual host about once every two years and always 
> struggle.
>
> I have added the web site to my hosts file and direct to my server. I 
> have a dozen entries.
>
> I have updated my virtual hosts Apache file
>
> I can ping the new virtual host just fine.
>
> But both Brave and Firefox raise an error saying that the host cannot 
> be reached?
>
> Firefox:
>
> Unable to connect
>
> Firefox can’t establish a connection to the server at roissystudiotest.ca.
>
> Brave:
>
>
>   This site can’t be reached
>
> *www.roissystudiotest.ca*refused to connect.
>
>
>
> I was getting the Apache default page but corrected the file 
> permissions to 755.
>
>
>
> Any and all help welcome!
>
> -- 
> Stephen
> www.roissy.ca