Created
June 14, 2022 16:16
-
-
Save ctrlaltdylan/7ef75a06d40083fa4fd501e4d2d55697 to your computer and use it in GitHub Desktop.
apache.conf for monorepo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache httpd v2.4 minimal configuration | |
# see https://wiki.apache.org/httpd/Minimal_Config for documentation | |
ServerRoot ${GITPOD_REPO_ROOT} | |
PidFile ${APACHE_PID_FILE} | |
User ${APACHE_RUN_USER} | |
Group ${APACHE_RUN_GROUP} | |
# Modules as installed/activated via apt-get | |
IncludeOptional /etc/apache2/mods-enabled/*.load | |
IncludeOptional /etc/apache2/mods-enabled/*.conf | |
# Configure hostname and port for server | |
ServerName ${APACHE_SERVER_NAME} | |
Listen *:8080 | |
# Configure Logging | |
LogFormat "%h %l %u %t \"%r\" %>s %b" common | |
CustomLog ${APACHE_LOG_DIR}/access.log common | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
# Never change this block | |
<Directory /> | |
AllowOverride None | |
Require all denied | |
</Directory> | |
# Direcrory and files to be served | |
DirectoryIndex index.html index.php | |
DocumentRoot "${GITPOD_REPO_ROOT}/${APACHE_DOCROOT}" | |
<Directory "${GITPOD_REPO_ROOT}/${APACHE_DOCROOT}"> | |
Require all granted | |
AllowOverride All | |
</Directory> | |
# Include conf installed via apt-get | |
IncludeOptional /etc/apache2/conf-enabled/*.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment