<VirtualHost *:80>
	DocumentRoot /var/www/html
	ServerName my_server_name
	
	Options -Indexes +FollowSymLinks

	ProxyPreserveHost On

        ProxyPass /geoserver http://localhost:8082/geoserver
        ProxyPassReverse /geoserver http://localhost:8082/geoserver

#        ProxyPass /geoserver http://localhost:8080/geoserver
#        ProxyPassReverse /geoserver http://localhost:8080/geoserver

	Alias /geonode "/dati/geonode/geonode"

	#WSGIDaemonProcess geonode python-path=/dati/.venvs/geonode/lib/python2.7/site-packages user=www-data threads=15 processes=2
	WSGIDaemonProcess geonode python-path=/dati/geonode:/dati/.venvs/geonode/lib/python2.7/site-packages user=eugenio threads=15 processes=2
    	
	ServerAdmin webmaster@localhost

	LogLevel trace8
    	ErrorLog /var/log/apache2/my_server_name-error.log
    	CustomLog /var/log/apache2/my_server_name-access.log combined


    	WSGIProcessGroup geonode
    	WSGIPassAuthorization On
    	WSGIScriptAlias / /dati/geonode/geonode/wsgi.py
	WSGIApplicationGroup %{GLOBAL}
#	WSGIDaemonProcess geonode user=eugenio threads=20 processes=5

	#WSGIDaemonProcess debug threads=1
	#WSGIProcessGroup debug

	<Directory "/dati/geonode/geonode/">
        	Options Indexes FollowSymLinks
        	IndexOptions FancyIndexing
		Require all granted
	</Directory>

	Alias /static/ "/dati/geonode/geonode/static_root/"
	#Alias /static/ "/dati/geonode/geonode/static/"
	Alias /uploaded/ "/dati/geonode/geonode/uploaded/"

</VirtualHost>
