aboutsummaryrefslogtreecommitdiff
path: root/etc/httpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/httpd.conf')
-rw-r--r--etc/httpd.conf19
1 files changed, 12 insertions, 7 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf
index 1000b04..c8405ed 100644
--- a/etc/httpd.conf
+++ b/etc/httpd.conf
@@ -5,7 +5,6 @@ ServerAdmin "${AP_ADMIN_EMAIL}"
User apache
Group apache
-DocumentRoot "${AP_WWW_DIR}"
CoreDumpDirectory "${AP_WORKSPACE_DIR}"
PidFile "${AP_WORKSPACE_DIR}/httpd.pid"
@@ -39,43 +38,49 @@ LoadModule deflate_module /usr/lib64/httpd/modules/mod_deflate.so
LoadModule authz_host_module /usr/lib64/httpd/modules/mod_authz_host.so
LoadModule expires_module /usr/lib64/httpd/modules/mod_expires.so
LoadModule dir_module /usr/lib64/httpd/modules/mod_dir.so
+LoadModule alias_module /usr/lib64/httpd/modules/mod_alias.so
LoadModule package_search_srv ${AP_MODULE_DIR}/libbrep-apache.so
<IfModule package_search_srv>
+ package-search-root ${AP_ROOT}/
package-search-db-host ${AP_DB_HOST}
package-search-db-port ${AP_DB_PORT}
- package-search-conf "${AP_CONFIG_DIR}/package-search.conf"
+ package-search-conf ${AP_CONFIG_DIR}/package-search.conf
</IfModule>
LoadModule package_details_srv ${AP_MODULE_DIR}/libbrep-apache.so
<IfModule package_details_srv>
+ package-details-root ${AP_ROOT}/
package-details-db-host ${AP_DB_HOST}
package-details-db-port ${AP_DB_PORT}
- package-details-conf "${AP_CONFIG_DIR}/package-details.conf"
+ package-details-conf ${AP_CONFIG_DIR}/package-details.conf
</IfModule>
LoadModule package_version_details_srv ${AP_MODULE_DIR}/libbrep-apache.so
<IfModule package_version_details_srv>
+ package-version-details-root ${AP_ROOT}/
package-version-details-db-host ${AP_DB_HOST}
package-version-details-db-port ${AP_DB_PORT}
- package-version-details-conf "${AP_CONFIG_DIR}/package-version-details.conf"
+ package-version-details-conf ${AP_CONFIG_DIR}/package-version-details.conf
</IfModule>
-<LocationMatch ^/$>
+<LocationMatch ^${AP_ROOT}/?$>
SetHandler package-search
</LocationMatch>
-<LocationMatch ^/go/[^/]+$>
+<LocationMatch ^${AP_ROOT}/go/[^/]+$>
SetHandler package-details
</LocationMatch>
-<LocationMatch ^/go/[^/]+/[^/]+$>
+<LocationMatch ^${AP_ROOT}/go/[^/]+/[^/]+$>
SetHandler package-version-details
</LocationMatch>
+AliasMatch ^${AP_ROOT}/(.+) ${AP_WWW_DIR}/$1
+
ExtendedStatus On
<Location /server-status>