• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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
 
Back
Top