Help - Search - Members - Calendar
Full Version: apache
Linuxhelp > Support > Technical Support
saco
Hi!,

I am new to Linux / Apache and am having problems configuring my apache server. Thi s is the problem:

I have my own domain eg www.mydomain.com and my own ip address eg 192.168.45.1 and I want to setup other sub domains
eg fredbloggs.mydomain.com. I also need to point this subdomain at a second index.html file for the new sub domain just by using
fredbloggs.mydomain.com. Am I right in calling this a subdomain? or a virtual domain?. I have also included a copy of the virtual domain section of my httpd.conf file. Any help wouyld be greatly appreciated!

<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/fredbloggs/index.html
ServerName fredbloggs/mydomain.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

when I point my browser at http://www.fredbloggs.mydomain.com it cannot find the index.html page.
C The Soup
QUOTE (saco @ Nov 6 2006, 01:56 PM) *
ServerName fredbloggs/mydomain.com


At first glance this SHOULD read:

ServerName www.fredbloggs.mydomain.com

Looks like two problems:

1. A Typo between fredbloggs and mydomain. Change the '/' to a '.'

2. www is also a subdomain of fredbloggs. So if you really want to go to http://www.fredbloggs.mydomain.com you'll need to add the 'www.'. If you want it to be http://fredbloggs.mydomain.com , don't add the www.

Make sense?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.