diff options
| author | Lambda <lambda@disroot.org> | 2025-12-10 18:43:52 -0500 |
|---|---|---|
| committer | Lambda <lambda@disroot.org> | 2025-12-10 18:43:52 -0500 |
| commit | 0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b (patch) | |
| tree | 08b9ff10c19e0c05e10ec7b819eacaa6da1655b9 /etc/httpd/conf/httpd.conf | |
| parent | 0c79ff01fe7eb5abf369e4c14edf8eeadb692c3b (diff) | |
| download | cgit-docker-0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b.tar.gz cgit-docker-0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b.tar.bz2 cgit-docker-0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b.zip | |
Added README and compose example.
Diffstat (limited to 'etc/httpd/conf/httpd.conf')
| -rw-r--r-- | etc/httpd/conf/httpd.conf | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/etc/httpd/conf/httpd.conf b/etc/httpd/conf/httpd.conf new file mode 100644 index 0000000..d99bd92 --- /dev/null +++ b/etc/httpd/conf/httpd.conf @@ -0,0 +1,45 @@ +## +## Apache Server Configuration +## + +ServerRoot /etc/httpd + +# +# Load Standard Modules +LoadModule authz_core_module modules/mod_authz_core.so +LoadModule unixd_module modules/mod_unixd.so +LoadModule log_config_module modules/mod_log_config.so +LoadModule logio_module modules/mod_logio.so +LoadModule mime_magic_module modules/mod_mime_magic.so +LoadModule mime_module modules/mod_mime.so +LoadModule mpm_prefork_module modules/mod_mpm_prefork.so +LoadModule cgi_module modules/mod_cgi.so +LoadModule dir_module modules/mod_dir.so + +# +# Server config +Listen 0.0.0.0:80 +ServerName localhost +ServerAdmin root@localhost +EnableSendFile on +AddDefaultCharset UTF-8 +TypesConfig /etc/mime.types +MIMEMagicFile conf/magic + +<Directory /> + Require all denied +</Directory> + +DocumentRoot "/srv/www/htdocs/cgit" +<Directory "/srv/www/htdocs/cgit/"> + DirectoryIndex cgit.cgi + AddHandler cgi-script .cgi + AllowOverride None + Options +ExecCGI -FollowSymLinks + Require all granted +</Directory> + +# Future proof +<Files ".ht"> + Require all denied +</Files>
\ No newline at end of file |
