September 16th, 2005, 12:21 AM
apache and subdomain
I and my friends bought a domain called lazyheads.com. The domain is forwarded to our home computer using our home IP address. We would like to use a subdomain called skeleti so the address would be skeleti.lazyheads.com.
I go to our registrar web page and add subdomain skeleti. I also redirect this subdomain to the same IP address as the main domain lazyhead.com.
I also set virtual host at httpd.conf. I use:
Problem is, that even if I try to open lazyheads.com or skeleti.lazyheads.com I still get the same page. It looks like the my config changes does nothing to the server behavior. Anyone knows what am I doing wrong?
CustomLog /var/www/htdocs/skeleti/logs/access_log combined
Thank you very much for your answers!
September 16th, 2005, 03:23 PM
Is the server itself able to resolve those names? Have you tried it without the :80 on the end ? (it shouldn't be needed since 80 is the standard port)
EDIT: Compared what I have done on my server and what you have, and the only difference (aside from custom server configs) is that for the namevirtualhost and virtualhost directives, I used the actual default servername...really shouldn't matter though...apache is going to be looking at the Host: < > token that is passed by the browser ... and will compare that to the servername line ... the big thing is consistency in naming the virtualhost with the namevirtualhost...
skeleti.lazyheads.com canonical name = lazyheads.com.
There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.
(Merovingian - Matrix Reloaded)
September 16th, 2005, 03:29 PM
can't resolve skeleti.lazyheads.com (here)
could that be the problem ??
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio
the best station for C64 Remixes !
September 18th, 2005, 04:33 PM
Problem is solved!
Apache configuration was right, there was a mistake in the redirection I set at my registrar pages.
But thank you all for your answers anyway.