1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Serveralias problems

Discussion in 'Plesk for Linux - 8.x and Older' started by Coquelicot, Sep 21, 2005.

  1. Coquelicot

    Coquelicot Guest


    I try to add Serveralias to my webserver.

    So i've edited the vhost.conf file in home/httpd/vhosts/[mydomain]/conf/

    it looks like that :

    DocumentRoot /home/httpd/vhosts/luberon-strategie.com/httpdocs
    ServerName luberon-strategie.com
    ServerAlias *.luberon-strategie.com

    <Directory /home/httpd/vhosts/luberon-strategie.com/httpdocs>
    Options FollowSymLinks
    AllowOverride None

    <IfModule mod_php4.c>
    php_admin_flag safe_mode Off
    php_admin_value register_globals 0

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Rewriterule ^/var/storage/.* - [L]
    Rewriterule ^/var/[^/]+/storage/.* - [L]
    RewriteRule ^/var/cache/texttoimage/.* - [L]
    RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
    Rewriterule ^/design/[^/]+/(stylesheets|images|javascript|flash)/.* - [L]
    Rewriterule ^/share/icons/.* - [L]
    Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
    Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
    RewriteRule .* /index.php

    but only 2 subdomains are redirected :

    www.luberon-strategie.com and admin.luberon-strategie.com

    for example "http://fr.luberon-strategie.com" redirect to the "default" folder

    I don't know what happen, please help