Junior G.
04-03-2002, 10:40 AM
Hello all,
I have just set up an Apache Server on my Mandrake 8.0 box.
I would like to add a Virtual Host to this server, but I'm having a bit of trouble.
I have 2 files to configure this server. The httpd.conf file which holds the Server Configuration and vhosts.conf, which holds configuration for Virtual Hosts.
I have copied the configuration info from these 2 files below for you to see.
At present, I can connect to the Web Site created by default when I installed Apache, but I cannot connect to my Virtual Web Site.
Also, can you please tell me how can I connect to a Web Site by using the server Hostname instead of the IP Address.
I can connect to my default web site from Linux using either the Hostname or IP Address, but when I try to connect to it using any Windows Client, I'm only able to connect using the IP Address. Using the Hostname, I get an Error: "The requested URL could not be retrieved".
Any advise would be gratefully received.
Thanks
Config Files...
httpd.conf
### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerName MYServer
ServerType standalone
ServerRoot /etc/httpd
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
ServerAdmin root@localhost
HostnameLookups On
DocumentRoot /var/www/html
NameVirtualHost aaa.bbb.0.0
vhosts.conf#
<VirtualHost aaa.bbb.27.254>
ServerAdmin root@localhost
DocumentRoot /samba/fcrteam
ServerName fcrteam.com
HostNameLookups On
ServerAlias fcrteam
</VirtualHost>
I have just set up an Apache Server on my Mandrake 8.0 box.
I would like to add a Virtual Host to this server, but I'm having a bit of trouble.
I have 2 files to configure this server. The httpd.conf file which holds the Server Configuration and vhosts.conf, which holds configuration for Virtual Hosts.
I have copied the configuration info from these 2 files below for you to see.
At present, I can connect to the Web Site created by default when I installed Apache, but I cannot connect to my Virtual Web Site.
Also, can you please tell me how can I connect to a Web Site by using the server Hostname instead of the IP Address.
I can connect to my default web site from Linux using either the Hostname or IP Address, but when I try to connect to it using any Windows Client, I'm only able to connect using the IP Address. Using the Hostname, I get an Error: "The requested URL could not be retrieved".
Any advise would be gratefully received.
Thanks
Config Files...
httpd.conf
### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerName MYServer
ServerType standalone
ServerRoot /etc/httpd
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
ServerAdmin root@localhost
HostnameLookups On
DocumentRoot /var/www/html
NameVirtualHost aaa.bbb.0.0
vhosts.conf#
<VirtualHost aaa.bbb.27.254>
ServerAdmin root@localhost
DocumentRoot /samba/fcrteam
ServerName fcrteam.com
HostNameLookups On
ServerAlias fcrteam
</VirtualHost>