Ratticweb with other sites

35 views
Skip to first unread message

Mauro Edgar

unread,
Oct 4, 2016, 10:22:23 AM10/4/16
to RatticDB
Hi,

I've installed RatticWeb which is working fine, but now I want to have other applications in the same Apache instance. I've configured vhosts to map to the sites folder, but nothing works unless Rattic.

Is there any way to make this happens?

My rattic.conf
NameVirtualHost *:80

<VirtualHost *:80>
   
ServerName mysite.com
   
ServerAlias HOSTNAME
   
Redirect permanent / https://mysite.com/
</VirtualHost>

Alias /
robots.txt /opt/apps/ratticweb/static/robots.txt
Alias /favicon.ico /opt/apps/ratticweb/static/favicon.ico

AliasMatch ^/([^/]*\.css) /opt/apps/ratticweb/static/styles/$1

Alias /media/ /opt/apps/ratticweb/media/
Alias /static/ /opt/apps/ratticweb/static/

<Directory /opt/apps/ratticweb/static>
   
Require all granted
</Directory>

<Directory /
opt/apps/ratticweb/media>
   
Require all granted
</Directory>

WSGIScriptAlias /
/opt/apps/ratticweb/ratticweb/wsgi.py
WSGIPassAuthorization On
WSGISocketPrefix /var/run/wsgi

WSGIDaemonProcess rattic processes=2 threads=25 home=/opt/apps/ratticweb/ python-path=/opt/apps/ratticweb display-name=%{GROUP}
WSGIProcessGroup rattic

<Directory /opt/apps/ratticweb/ratticweb>
 
<Files wsgi.py>
     
Require all granted
 
</Files>
</
Directory>



My httpd-vhosts.com
<VirtualHost *:80>
    DocumentRoot "/opt/lampp/htdocs/othersite"
    ServerName mysite.com/othersite
    ServerAlias www.mysite.com/othersite
   
<Directory "/opt/lampp/htdocs/othersite">
    AllowOverride All
    Require all Granted
   
</Directory>
</VirtualHost>



Both .confs are Included in httpd.conf

Thanks in advance

Mauro

Caleb Call

unread,
Oct 4, 2016, 10:34:31 AM10/4/16
to Mauro Edgar, RatticDB
Your second vhost isn’t a valid vhost.  ServerName would need to be something like othersite.mysite.com.  As you have it, it just falls under your first vhost and would be better suited to just adding a location block or an Alias block within your first vhost.  

Mauro Edgar

unread,
Oct 4, 2016, 10:43:51 AM10/4/16
to RatticDB, mauro...@gmail.com
That's it.

Many thanks
Reply all
Reply to author
Forward
0 new messages