summarylogtreecommitdiffstats
path: root/apache.example.site.conf
blob: 0dd23cc59c9e24fd45392adc67749e956dca07b6 (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
#NameVirtualHost *

<VirtualHost *>
    ServerName rutorrent.localhost
    ServerAdmin webmaster@localhost
	DocumentRoot /usr/share/webapps/rutorrent
    
# change HTTPD to the httpd.itk in /etc/conf.d/apache
    <IfModule itk.c>
        AssignUserId user group
    </IfModule>

    <Directory "/usr/share/webapps/rutorrent">
        AllowOverride All
        AuthName "Private"
        AuthType Basic
# from root or sudo run: htpasswd -c /etc/webapps/rutorrent/conf/htpasswd your.username
        AuthUserFile /etc/webapps/rutorrent/conf/htpasswd
        Require valid-user
        Order allow,deny
#        Allow from all
        Allow from 127.0.0.1
        Allow from ::1
    </Directory>

    <IfModule scgi_module>
        SCGIMount /RPC2 localhost:5000
    </IfModule>

	# first create the directory
    ErrorLog /var/log/httpd/rutorrent.localhost/error.log
	CustomLog /var/log/httpd/rutorrent.localhost/access.log combined
</VirtualHost>

# vim:ft=apache