aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/etc/apache2/sledjchisl.fcgi.conf
blob: 06002bd77d4ff57bf999ec0250e68c1b7dfa46a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This is just an example to use to modify your real site configuration file.

LoadModule proxy_fcgi_module /usr/lib/apache2/modules/mod_proxy_fcgi.so

<VirtualHost *:80>
	ServerName localhost
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www/html
	<Directory "/var/www/html">
	    AllowOverride All
	</Directory>


	# Any request ENDING in .fcgi gets passed to that unix:...socket, piped as FGCI protocol to localhost.
	# That last bit isn't documented, this helped - https://www.linuxquestions.org/questions/linux-server-73/understanding-apache-proxy-unix-sockets-with-pipe-localhost-4175627589/
	<FilesMatch "\.fcgi$">
	    SetHandler "proxy:unix:///opt/opensim_SC/var/run/sledjchisl.socket|fcgi://localhost/"
	</FilesMatch>

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<IfModule mod_ssl.c>
    <VirtualHost *:443>
	ServerName local
	ServerAlias *.localhost
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www/html
	<Directory /var/www/html>
	    AllowOverride All
	</Directory>

	<FilesMatch "\.fcgi$">
	    SetHandler "proxy:unix:///opt/opensim_SC/var/run/sledjchisl.socket|fcgi://localhost/"
	</FilesMatch>
    </VirtualHost>
</IfModule>