homepage Welcome to WebmasterWorld Guest from 54.227.5.234
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
ServerAlias *
Ruben




msg:4311330
 2:25 pm on May 12, 2011 (gmt 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?

 

phranque




msg:4311570
 9:25 pm on May 12, 2011 (gmt 0)

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.

coopster




msg:4311572
 9:28 pm on May 12, 2011 (gmt 0)

Have you considered _default_ [httpd.apache.org]?

Ruben




msg:4311678
 6:11 am on May 13, 2011 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved