The MU forums have moved to WordPress.org

Problem when WordpressMU is used with a second website on aPache2 (6 posts)

  1. nicobox
    Member
    Posted 17 years ago #

    Hey Guys,

    Can you help me to solve my problem ? ... Because I have no solution for the moment.

    Two websites run on my server. The firt one runs on Wordpress MU, the second one on Wordpress.

    A few week ago I had only one website toto.com running Wordpress MU and all was OK ! My virtualhost was configured as below in the default file in site-available folder :

    <VirtualHost *.80>

    ServerName toto.com
    ServerAlias *.toto.com
    ServerAdmin webmaster@toto.com

    DocumentRoot /var/www/toto

    <Directory /var/www/toto>
    Options FollowSymLinks MultiViews
    AllowOverride FileInfo Options
    Order allow,deny
    Allow from all
    </Directory>

    LogLevel warn
    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/access.log combined_vhost

    </VirtualHost>

    And two days ago, I decided to create a second website titi.com running Wordpress (Not MU) on the same server. So I added another virtual host to the default file. Right Now, default file is as below :

    <VirtualHost *.80>

    ServerName toto.com
    ServerAlias *.toto.com
    ServerAdmin webmaster@toto.com

    DocumentRoot /var/www/toto

    <Directory /var/www/toto>
    Options FollowSymLinks MultiViews
    AllowOverride FileInfo Options
    Order allow,deny
    Allow from all
    </Directory>

    LogLevel warn
    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/access.log combined_vhost

    </VirtualHost>

    <VirtualHost *.80>

    ServerName titi.com
    ServerAdmin webmaster@titi.com

    DocumentRoot /var/www/titi

    <Directory /var/www/titi>
    Options FollowSymLinks MultiViews
    AllowOverride FileInfo Options
    Order allow,deny
    Allow from all
    </Directory>

    LogLevel warn
    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/access.log combined_vhost

    </VirtualHost>

    But right now, I have a problem. Toto.com runs OK but not titi.com and I don't know why.

    When I enter titi.com, the site is rediriged on toto.com, but Why ? I supposed that the problem is on Wordpress MU which interfere with other website because when I replace Wordpress MU by Wordpress (not MU) on Toto.com, All is ok, I can use both virtual host.

    Have you got a solution ?

    Thanks a lot guys.
    Nico from paris

  2. Ovidiu
    Member
    Posted 17 years ago #

    I am not 100% sure, as I can't access my server from here, but are you sure you can have 2 <VirtualHost *.80> ? that looks to me like that's a catch all Virtualhost :-)

    check here: http://httpd.apache.org/docs/2.0/mod/core.html#virtualhost

  3. nicobox
    Member
    Posted 17 years ago #

    Yes I am sure I have 2 <VirtualHost *.80> ...

  4. nicobox
    Member
    Posted 17 years ago #

    And I have already check this link http://httpd.apache.org/docs/2.0/mod/core.html#virtualhost

    So no other solution ?

  5. nicobox
    Member
    Posted 17 years ago #

    Hey Ovidiu, if you have a similar configuration, can you send me your configuration in order to compare with mine ?

    Thanks a lot.

  6. nicobox
    Member
    Posted 17 years ago #

    Hi there,

    I finally solved my problem ...
    And ...
    ... It was not a problem !
    DNS was not refreshed yet, I created my second domain name too days ago and it have just worked tonight.

    Next time I will be more patient ;-)

    See you and thanks Ovidiu for your ideas.

    Nico

About this Topic