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

subdomains & virtual hosts

Discussion in 'Plesk for Linux - 8.x and Older' started by kadoudal, Nov 20, 2007.

  1. kadoudal

    kadoudal Regular Pleskian

    27
    23%
    Joined:
    Nov 20, 2007
    Messages:
    244
    Likes Received:
    0
    I installed yesterday Plesk 8.2 on my Debian 4.0 box... no problem ...
    I am trying to install Subversion and Trac to manage developments for one of my customers. Using Plesk, I created :
    domain: www.customer1.com and subdomain : trac.customer1.com
    tested http://trac.customer1.com light on the traditionnal Plesk empty site panel.

    Trac & Subversion installations have been done at root level (/var/svn/project1 and var/trac/project1)

    Trac is running, tested with tracd --port 8000 /var/trac/project1 in console and http://mydevbox.org:8000/project1
    BUT
    then, if I try :
    http://trac.customer1.com
    I dont' see the Trac index page, but still the Plesk empty site panel.

    SO, it seems to be an APACHE vhost issue

    QUESTION :
    where should I write the virtual host definitions for a sub-domain ? presently I wrote it in :
    /var/www/vhosts/customer1.com/subdomains/trac/conf/vhost.conf

    <VirtualHost *>
    ServerAdmin myaddress@myhome.com
    ServerName trac.customer1.com
    DocumentRoot /var/trac/project1

    <Location />
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /var/trac/project1
    PythonOption TracUriRoot /
    PythonPath "sys.path + ['/var/trac/project1']"
    </Location>

    ErrorLog /var/log/apache2/error.trac.customer1.com.log
    CustomLog /var/log/apache2/access.trac.customer1.com combined
    ..
    </VirtualHost>

    I also tried to write it in :
    /etc/apache2/sites-available/trac.customer1.com
    then enabled the site trac.customer1.com
    but it doesn't change anything at all...
    I cannot reach the Trac....

    any help or URL link to a solution will be appreciated...

    kad
     
  2. kadoudal

    kadoudal Regular Pleskian

    27
    23%
    Joined:
    Nov 20, 2007
    Messages:
    244
    Likes Received:
    0
    I answer myself ! YES it's in the subdomain conf folder... executing then
    /usr/local/psa/admin/sbin/websrvmng -u --vhost=trac.customer1.com
    (is it necessary ?.. but it works...)

    and restarting Apache..

    I am already in love with Plesk... so well-organized !
     
  3. kadoudal

    kadoudal Regular Pleskian

    27
    23%
    Joined:
    Nov 20, 2007
    Messages:
    244
    Likes Received:
    0
    Plesk don't do what it is suppose to do !!!

    too bad... if I can create easily the vhost.conf for a subdomain, I just discover that deleting the subdomain delete it too and the http.include is modified , yes .. then I perform :

    /usr/local/psa/admin/bin/websrvmng -r --vhost-name=trac
    and restart apache
    /etc/init.d/apache2 restart

    BUT accessing the trac.customer1.com, still show me the default page rather than the not found...


    what's wrong ? how can I get rid of deleted subdomains configs.... using Plesk of course, I could get rid of Plesk and be back to standard Apache2 files...?


    thanks for your help
     
Loading...