[users@httpd] Virtual Hosts help needed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hi all,
i am a newbie on such subjects :)
but i want to ask something to you:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName debian
ServerAlias localhost
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost *:80>
ServerName debian1
ServerAlias localhost1
DocumentRoot /var/wwwwww/
</VirtualHost>
these are my virtual host definitions and all i want to do is this :
i have two folders under /var/ which are /www and /wwwwww
and i want apache to show files under /www when 'http://localhost' is typed on browser.
and to show files under /wwwwww when 'http://localhost1' is typed on browser.
for 'http://localhost' everything is ok. but when i type 'http://localhost1' get the error below :
An error occurred while loading
http://localhost1/
Unknown host localhost1 ...
how i can achieve ?
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]