RSS Git Download  Clone
Raw Blame History
#--------------------------------------------------------------------------------------
# apache2/sites-available/vhosts.conf:
# discontinued - see weather.volvox.online config

<virtualHost *:80>
    ServerName openweather.mine.nu
	# ServerAlias

	FastCgiServer /home/raj/apps/weather/public/dispatch.fcgi

    DocumentRoot /home/raj/apps/weather/public
    <Directory "/home/raj/apps/weather/public">
      AllowOverride None
      Options +Indexes +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      # AddHandler cgi-script .cgi # for .cgi
	  AddHandler fastcgi-script .fcgi
      # Apache 2.4
      Require all granted
    </Directory>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    # RewriteRule ^(.*)$ /dispatch.cgi$1 [QSA,L]
    RewriteRule ^(.*)$ /dispatch.fcgi$1 [QSA,L]

    ErrorLog  /var/log/apache2/weather.error.log
    CustomLog /var/log/apache2/weather.access.log combined
</VirtualHost>

#--------------------------------------------------------------------------------------
# apache2/websites/weather.volvox.online

    ServerName weather.volvox.online
    DocumentRoot "/home/raj/apps/weather/public"
	
  <Directory "/home/raj/apps/weather/public">
      AllowOverride None
      Options +Indexes +ExecCGI -MultiViews +SymLinksIfOwnerMatch
	  # AddHandler fastcgi-script .fcgi
	  AddHandler  fcgid-script .fcgi
      # Apache 2.4
      Require all granted
  </Directory>

    ErrorLog  /var/log/apache2/weather.error.log
    CustomLog /var/log/apache2/weather.access.log combined

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    # RewriteRule ^(.*)$ /dispatch.cgi$1 [QSA,L]
    RewriteRule ^(.*)$ /dispatch.fcgi$1 [QSA,L]