You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrey Kuznetsov <de...@gmail.com> on 2005/12/12 04:12:30 UTC

[users@httpd] Problem with Virtual Host on Apache v2.0.54

Apache v2.0.54 behind NAT and using DMZ.
I am able to access the website from outside through the NAT and else,
however I cannot set up my Virtual Host environment.

This is what I have in my config file, it works in terms it redirects
me to the first instance of priority which is ABC but I can never get
to EFG even though I type http://efg.dyndns.dk. My problem is being
able to access abc but not efg which is like the second domain hosted
on the same apache server\ip.
Thank you for helping out. Just ask if you need more info.

NameVirtualHost *

<VirtualHost abc.dyndns.dk:80>
    ServerAdmin abc@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/abc"
    ServerName abc.dyndns.dk
    ErrorLog logs/error.log
    CustomLog logs/access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>

<VirtualHost efg.dyndns.dk:80>
    ServerAdmin efg@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/efg"
    ServerName efg.dyndns.dk
    ErrorLog logs/efg-error.log
    CustomLog logs/efg-access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>

--
Live Long and Prosper,
by Andrey Kuznetsov aka "Death Owl"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with Virtual Host on Apache v2.0.54

Posted by Andrey Kuznetsov <de...@gmail.com>.
SOLVED
Thanks a lot I have no idea why it didn't work before when I had the
*:80 placed where I did now, must be the efg.dyndns.dk full domain
name.
This works:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin kandrey89@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/abc"
    ServerName abc.dyndns.dk
    ErrorLog logs/error.log
    CustomLog logs/access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin efg@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/efg"
    ServerName efg.dyndns.dk
    ErrorLog logs/efg-error.log
    CustomLog logs/efg-access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>

On 12/12/05, Joshua Slive <js...@gmail.com> wrote:
> On 12/12/05, myhapwcforever <my...@gmail.com> wrote:
> > To try the follow?
> >
> > NameVirtualHost youip:80
> >
> > <VirtualHost youip:80>
>
> This may work, but the easier configuration is to replace youip with *.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


--
Live Long and Prosper,
by Andrey Kuznetsov aka "Death Owl"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with Virtual Host on Apache v2.0.54

Posted by Joshua Slive <js...@gmail.com>.
On 12/12/05, myhapwcforever <my...@gmail.com> wrote:
> To try the follow?
>
> NameVirtualHost youip:80
>
> <VirtualHost youip:80>

This may work, but the easier configuration is to replace youip with *.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with Virtual Host on Apache v2.0.54

Posted by myhapwcforever <my...@gmail.com>.
To try the follow?

NameVirtualHost youip:80

<VirtualHost youip:80>
    ServerAdmin abc@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/abc"
    ServerName abc.dyndns.dk
    ErrorLog logs/error.log
    CustomLog logs/access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>

<VirtualHost youip:80>
    ServerAdmin efg@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/efg"
    ServerName efg.dyndns.dk
    ErrorLog logs/efg-error.log
    CustomLog logs/efg-access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>


----- Original Message ----- 
From: "Andrey Kuznetsov" <de...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Monday, December 12, 2005 11:12 AM
Subject: [users@httpd] Problem with Virtual Host on Apache v2.0.54


Apache v2.0.54 behind NAT and using DMZ.
I am able to access the website from outside through the NAT and else,
however I cannot set up my Virtual Host environment.

This is what I have in my config file, it works in terms it redirects
me to the first instance of priority which is ABC but I can never get
to EFG even though I type http://efg.dyndns.dk. My problem is being
able to access abc but not efg which is like the second domain hosted
on the same apache server\ip.
Thank you for helping out. Just ask if you need more info.

NameVirtualHost *

<VirtualHost abc.dyndns.dk:80>
    ServerAdmin abc@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/abc"
    ServerName abc.dyndns.dk
    ErrorLog logs/error.log
    CustomLog logs/access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>

<VirtualHost efg.dyndns.dk:80>
    ServerAdmin efg@gmail.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/efg"
    ServerName efg.dyndns.dk
    ErrorLog logs/efg-error.log
    CustomLog logs/efg-access.log common
    Options Indexes FollowSymLinks ExecCGI
</VirtualHost>

--
Live Long and Prosper,
by Andrey Kuznetsov aka "Death Owl"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org