Jump to content

can't create subdomains with virtualhost


XRayden

Recommended Posts

i dont know f*** why, this webserver make me crazy.

 

i normaly have no problems with subdomain in virtualhost, but this one is so much fun......

 

i have the website (default) www.borntobestar.tv

i'm trying to ad a simple ads.borntobestar.com so that an OpenX software be installed there.

 

 

so i create a new virtualhost :

<VirtualHost *>
    DocumentRoot "/var/www/ADSERVER"
    ServerName ads.borntobestar.com
<Directory "/var/www/ADSERVER">
    Order allow,deny
    AllowOverride none
    Allow from all
</Directory>
</VirtualHost>

 

then... out, the main site BECOME the virtualhost, www.borntobestar.tv now trie to install openx... wtf ?

 

i dont know why this one is so giving me an headache...

 

i dont know why it tries the last virtualhost, i have an virtual host setted before it that do :

 

<VirtualHost _default_:*>
   DocumentRoot /var/www/html
   DirectoryIndex index.html index.php
   ScriptAlias /cgi-bin/ "/var/www/html/cgi-bin/"
<Directory "/var/www/html/cgi-bin/">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
<Directory "/var/www/html">
    Order allow,deny
    AllowOverride none
    Allow from all
</Directory>
</VirtualHost>

Link to comment
https://forums.phpfreaks.com/topic/107685-cant-create-subdomains-with-virtualhost/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.