|
Home > Archive > Apache Server configuration support > July 2006 > virtualhost
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Simon Macura 2006-07-21, 7:27 pm |
| I cannot get my virtualhosts to work properly. When I enter
www.radioclubstyle.net into my web browser I still get redirected to my
first (default) vhost. Any hints??!!
sincerely
simon
NameVirtualHost *:80
<VirtualHost *>
ServerAdmin simon.macura@gmx.de
ServerName radyjko.de
ServerAlias radyjko.de *.radyjko.de
DocumentRoot /var/www/
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
ServerName www.radioclubstyle.net
ServerAdmin simon.macura@gmx.de
ServerAlias radioclubstyle.net *.radioclubstyle.net
DocumentRoot /var/www/clubstyle/
<Directory /var/www/clubstyle/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Zone content for radioclubstyle.net on server ns1.xname.org.
; <<>> DiG 9.2.3 <<>> axfr radioclubstyle.net @ns1.xname.org.
;; global options: printcmd
radioclubstyle.net. 86400 IN SOA ns0.xname.org. aesthetic.gmx.net.
2006072111 10800 3600 604800 10800
radioclubstyle.net. 86400 IN NS ns0.xname.org.
radioclubstyle.net. 86400 IN NS ns1.xname.org.
radioclubstyle.net. 86400 IN A 85.25.135.96
www.radioclubstyle.net. 86400 IN CN...oclubstyle.net.
radioclubstyle.net. 86400 IN SOA ns0.xname.org. aesthetic.gmx.net.
2006072111 10800 3600 604800 10800
;; Query time: 1 msec
;; SERVER: 193.218.105.149#53(ns1.xname.org.)
;; WHEN: Fri Jul 21 16:42:40 2006
;; XFR size: 6 records
| |
| Davide Bianchi 2006-07-21, 7:27 pm |
| On 2006-07-21, Simon Macura <simon.macura@gmx.de> wrote:
> NameVirtualHost *:80
If you use '*:80' in the definition of the name virtual host you have
to use the same in all the VirtualHosts. Change
<VirtualHost *>
in
<VirtualHost *:80>
Davide
--
Can you SysAdmins tell me what might go on in a typical day?
Hours of endless frustration punctuated by moments of sheer terror.
--Saul Tannenbaum
| |
| Simon Macura 2006-07-21, 7:27 pm |
| Davide Bianchi wrote:
> On 2006-07-21, Simon Macura <simon.macura@gmx.de> wrote:
>
> If you use '*:80' in the definition of the name virtual host you have
> to use the same in all the VirtualHosts. Change
>
> <VirtualHost *>
>
> in
>
> <VirtualHost *:80>
>
> Davide
>
big thanks :]
works great now!
|
|
|
|
|