summarylogtreecommitdiffstats
path: root/apache.example.site.conf
diff options
context:
space:
mode:
authorPiotr Rogoża2015-06-14 16:42:16 +0200
committerPiotr Rogoża2015-06-14 16:42:16 +0200
commit702bc1e4b8b2069bb632ffa427985e71bbd9d633 (patch)
tree1b75630740e3d4bc83206a0bd6675040c06382f5 /apache.example.site.conf
downloadaur-702bc1e4b8b2069bb632ffa427985e71bbd9d633.tar.gz
Initial import
Diffstat (limited to 'apache.example.site.conf')
-rw-r--r--apache.example.site.conf36
1 files changed, 36 insertions, 0 deletions
diff --git a/apache.example.site.conf b/apache.example.site.conf
new file mode 100644
index 000000000000..0dd23cc59c9e
--- /dev/null
+++ b/apache.example.site.conf
@@ -0,0 +1,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
+