• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

subdomains & virtual hosts

kadoudal

Regular Pleskian
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 [email protected]
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
 
Originally posted by kadoudal

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

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 !
 
Plesk don't do what it is suppose to do !!!

Originally posted by kadoudal
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 !

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
 

Similar threads

Back
Top