Article ID: 4099, created on Mar 24, 2008, last review on May 10, 2014

  • Applies to:
  • Sphera

Symptoms

By default, when installig Chilisoft on a VDS, the VDSs subdomains will not be able to run asp files using Chilisoft.

Resolution

1. Create a VDS called example.com.
2. Create a folder (in the VDS) /www/htdocs/example2/
3. Create a VirtualHost (VDS subdomain) example2.com with document-root in /www/htdocs/example2/
4. Add the Chili!Soft VA for VDS & test that asp works for example.com  (You can do that by browsing to http://www.example.com/test.asp)
5. Copy the test.asp file from /www/htdocs/ to the Virtual Host document-root (/www/htdocs/example2.com/).
6. Create a SymLink /usr/loca/casp/example2.com-asp pointing to ../apache/htdocs/example2 (Inside the VDS).
7. Inside the VirtualHost document root (~VDS/www/htdocs/example2) Create a Symlink example2.com-asp pointing to /usr/local/casp/example2.com-asp.
8. AS ROOT: create  a Symlink /usr/loca/casp/example2.com-asp pointing on ~VDS/usr/loca/casp/example2.com-asp.
9. In ~VDS/etc/httpd/conf/httpd.conf Virtual Host definition :
<VirtualHost *>
 ServerName example2.com
 ServerAlias
www.example2.com
 #DocumentRoot /var/www/html/example2
 DocumentRoot /usr/local/casp/example2.com-asp
 RewriteCond %{REQUEST_URI} !^/example2.com-asp.*$
 RewriteRule ^(.*)\.as(p|a) /example2.com-asp/$0 [R]
 RewriteEngine on
</VirtualHost>

The changes are :
i. Added same asp rewrite rules as in main host
ii. Changed Document root to /usr/local/casp/example2.com-asp (this is
symlinked to the original document root)
10. Restart the VDS's apache.

 

Please backup all files before modifications are done

5f478287f7e74fe9b07217d8131cd741 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF