Forum Moderators: phranque

Message Too Old, No Replies

Please help -New in Webmastering

Subdomains

         

codeb

4:54 pm on Jul 29, 2005 (gmt 0)

10+ Year Member



Please help me to make my subdomains in Apache.
1st I'm from Bosnia and please forgive me on bad English.
I have one public IP address with Apache and Mail server.
I change in Windows->Drivers->Etc->Host
123.456.78 www.domain.com
123.456.78 subdomain.domain.com
Then ih Httpd in Apache COnfig dir set
--------- Start -----------------
NameVirtualHost *:80
#MAIN SERVER
<VirtualHost 123.45678:80>
ServerName www.domain.com
ServerAdmin info@domain.com
DirectoryRoot "C:\apache\htdocs"
</VirtualHost>
#SUBDOMAIN
<VirtualHost 123.45678:80>
ServerName subdomain.domain.com
ServerAdmin subdomainAdmin@domain.com
DirectoryRoot "C:\apache\htdocs\subdomain"
</VirtualHost>
-------------- End---------------
When I write subdimain.domain.com in my web browser I get ugly message "The page cannot be displayed..."
Please help

chrisjoha

5:37 pm on Jul 29, 2005 (gmt 0)

10+ Year Member



Well, there seems to be a typo in your VirtualHost ips, there's lacking a "."

codeb

7:11 am on Jul 31, 2005 (gmt 0)

10+ Year Member



Please help to make it work . Write some example , please.

jdMorgan

2:40 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



codeb,

Welcome to WebmasterWorld!

The following examples may be helpful:

Virtual Host examples for common setups [httpd.apache.org]

Related threads [google.com] on WebmasterWorld

Jim

codeb

2:08 pm on Aug 8, 2005 (gmt 0)

10+ Year Member



Nothing,
I try allmost all solutions, but nothing.
Ok there is more info.Like I write in first post:
I have leasing line with one public address but and one
registred domain .I have one server between my server
and internet thet server give me this mail.domain.net.
All visitors of my web site must type domain with www
(www.domain.net not just domain.net). I you use IP address
you go to my website.

Can I make subdomain or that server before my.If I can please help me
Sorry on bad English

jdMorgan

8:22 pm on Aug 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



codeb,

Technical problems require precise communication, and it will be difficult here, since this forum is in English.

We will be happy to try to help, but it might be better of you could find an Apache forum in your native language, or find someone to help you translate "technical english." If this is possible, it would be easier for you. If not, please try to ask "small" questions, so that they are easy to understand.

Jim