logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Is this possible? Redirect domainname to a specific page
Author
flatcircle



Joined: 27 Jun 2006
Posts: 79

PostPosted: Tue 21 Nov '06 15:38    Post subject: Is this possible? Redirect domainname to a specific page Reply with quote

Hello,

I'd like to know whether it's possible to redirect a domainname to a specific page on the webserver.

I know I have to create a DNS entry on the DNS server which points to my Apache machine. On this machine, I have running several websites by using 'virtual hosts'. What's the next step? Do I have to use modrewrite to intercept this call to redirect it to this specific .htm-page?

Modrewrite will work globally when added to httpd.conf, so I don't think that modrewrite 'senses' from which domainname to request is coming.

Someone can help me out? Don't have a clue...

Regards.
FC.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 21 Dec '06 12:05    Post subject: Reply with quote

Hello!
inside the vhost container in httpd.conf you can set a doc per vhost

See here http://httpd.apache.org/docs/2.2/en/vhosts/name-based.html

If there are any questions, please ask again.
Back to top


Reply to topic   Topic: Is this possible? Redirect domainname to a specific page View previous topic :: View next topic
Post new topic   Forum Index -> Apache