| 1 |
# Apache httpd v2.4 minimal configuration |
| 2 |
# see https://wiki.apache.org/httpd/Minimal_Config for documentation |
| 3 |
|
| 4 |
ServerRoot ${GITPOD_REPO_ROOT} |
| 5 |
|
| 6 |
PidFile ${APACHE_PID_FILE} |
| 7 |
User ${APACHE_RUN_USER} |
| 8 |
Group ${APACHE_RUN_GROUP} |
| 9 |
|
| 10 |
# Modules as installed/activated via apt-get |
| 11 |
IncludeOptional /etc/apache2/mods-enabled/*.load |
| 12 |
IncludeOptional /etc/apache2/mods-enabled/*.conf |
| 13 |
|
| 14 |
# Configure hostname and port for server |
| 15 |
ServerName ${APACHE_SERVER_NAME} |
| 16 |
Listen *:8080 |
| 17 |
|
| 18 |
# Configure Logging |
| 19 |
LogFormat "%h %l %u %t \"%r\" %>s %b" common |
| 20 |
CustomLog ${APACHE_LOG_DIR}/access.log common |
| 21 |
ErrorLog ${APACHE_LOG_DIR}/error.log |
| 22 |
|
| 23 |
# Never change this block |
| 24 |
<Directory /> |
| 25 |
AllowOverride None |
| 26 |
Require all denied |
| 27 |
</Directory> |
| 28 |
|
| 29 |
# Direcrory and files to be served |
| 30 |
DirectoryIndex index.html |
| 31 |
DocumentRoot "${GITPOD_REPO_ROOT}/www" |
| 32 |
<Directory "${GITPOD_REPO_ROOT}/www"> |
| 33 |
Require all granted |
| 34 |
</Directory> |
| 35 |
|
| 36 |
# Include conf installed via apt-get |
| 37 |
IncludeOptional /etc/apache2/conf-enabled/*.conf |
| 38 |
|
| 39 |
# https://github.com/gitpod-io/apache-example/blob/master/apache/apache.conf |
| 40 |
|