Welcome to WebmasterWorld Guest from 54.167.129.169

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

ServerAlias *

     
2:25 pm on May 12, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 20, 2004
posts: 98
votes: 0


I want every domain which is not used by DirectAdmin on a server to request a index.php in a certain folder.

Is ServerAlias * a good option for this?
9:25 pm on May 12, 2011 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10595
votes: 22


as long as duplicate content is not an issue...

or if it is you could implement a 301 redirect for all but the canonical hostname.
9:28 pm on May 12, 2011 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12541
votes: 1


Have you considered _default_ [httpd.apache.org]?
6:11 am on May 13, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 20, 2004
posts: 98
votes: 0


The thing is, I want to let people create custom sites using php. I need a simple way that all domain names which point to my ip via DNS open up an index.php. In that file I read the hostname and serve content depending on the domainname.