|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
canonical domains help
looking to set up a canonical domain name (canonical.domain.com)
looked in Apache help files and didnt find my solution Apache 2.0.48 |
|
#2
|
||||
|
||||
|
RE: canonical domains help
Is what you're trying to do supposed to be done through Apache, or do you need to create DNS records? What exactly are you trying to do?
-Tim |
|
#3
|
||||
|
||||
|
RE: canonical domains help
not sure what i need to do
i am using apache, what would i need to do to make it aware of the canonical domain name and what else would i need to do i am at step 0 with canonical domains, and i really need a step by step |
|
#4
|
||||
|
||||
|
RE: canonical domains help
Are you setting Apache's domain name or are you doing virtual hosts?
I can't help you unless you know what you are trying to do. -Tim |
|
#5
|
||||
|
||||
|
RE: canonical domains help
well, its my ip address, i dont have my server pointing to my pc
but i want to eventually have it set up to be able to host my domain on my on system, which is why i want to learn about how it is set up so it would be localhost/depts/web/service/ i want to be able to do service.localhost/ is that possible? |
|
#6
|
||||
|
||||
|
RE: canonical domains help
Are you trying to bind your domain name to your ip address so that when someone on the internet enters your domain name in their web browser they arrive at your server...
or are you trying to to make Apache respond to a call to a subdomain, as in albums.example.com? -Tim |
|
#7
|
||||
|
||||
|
RE: canonical domains help
currently, i want to leave my domain name on an external (professional) server
i am using localhost for verification purposes, though eventually, i would like to set up a full time server for my clients, but do not want to do this until i know how to maintain one, and that includes being able to set up canonicals is the canonical http://test.localhost/ valid ? can i do this without pointing an actual domain name or even http://test.12.34.56.78/ |
|
#8
|
|||
|
|||
|
RE: canonical domains help
so your trying to have
http://yourwebsite.com resolve to a server on the internet but you want http://subdomain.yourwebsite.com resolve to your local box, and NOT the other server on the internet? its hard to understand what you want it to do. it seems like you want to do 3 things. what do you want to do right now though? localbox is win or nix? you have a dedicated ip address from your isp? |
|
#9
|
||||
|
||||
|
RE: canonical domains help
no
i want locally to have http://sub.localhost/ i want my domain to stay as is, for now, until i can complete setting up local machine win xp pro sp2 apache 2.0.48 |
|
#10
|
||||
|
||||
|
RE: canonical domains help
It doesn't make sense to have a subdomain.localhost. Why don't you just use localhost for testing?
The idea of the subdomain is that it's a different computer or network within the domain... such as box1.example.com and box2.example.com would be two different computers within the same domain. localhost is more of an alias for the local machine than a network name. submacine.localhost doesn't make sense, do you have another computer inside your computer? With that said, I would configure it to use name based virtual hosting, but I can't say 100% if Apache would handle a submachine.localhost type request. Look at the virtual hosting section of your httpd.conf file. I would configure it somewhat like this: NameVirtualHost *:80 <VirtualHost *> ServerName subdomain.localhost DocumentRoot /mnt/hd/web/subdomain </VirtualHost> Obviously the values would depend on your specific setup. For more information on virtual hosting, httpd.apache.org/docs-2.0/vhosts. -Tim |
|
#11
|
||||
|
||||
|
RE: canonical domains help
with this
NameVirtualHost *:80 <VirtualHost *> ServerName subdomain.localhost DocumentRoot /faq </VirtualHost> no go (cannot be displayed) with this NameVirtualHost *:80 <VirtualHost *> ServerName subdomain.localhost DocumentRoot D:/webdocs/kender/faq </VirtualHost> directs all of localhost to faq page ah well.. |
|
#12
|
||||
|
||||
|
RE: canonical domains help
So try something like this
NameVirtualHost *:80 <VirtualHost *> ServerName localhost DocumentRoot D:/webdocs/kender/htdocs </VirtualHost> <VirtualHost *> ServerName subdomain.localhost DocumentRoot D:/webdocs/kender/faq </VirtualHost> Will that work? -Tim |
|
#13
|
||||
|
||||
|
RE: canonical domains help
localhost worked, subdomain didnt
|
|
#14
|
||||
|
||||
|
RE: canonical domains help
i do want to thank you for helping though! i do appreciate the time
|
|
#15
|
||||
|
||||
|
RE: canonical domains help
Well at least now we know.
-Tim |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > canonical domains help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |