Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> apache, trying to host sub domains
saco
post Nov 6 2006, 01:56 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 6-November 06
Member No.: 7,679



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.
Go to the top of the page
 
+Quote Post
C The Soup
post Nov 20 2006, 08:47 PM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 20-November 06
Member No.: 7,851



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?


--------------------

RHCE, CISSP, Sair LCP, CCNA, A+
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 11:01 PM