Skip to content
Snippets Groups Projects
Commit d4fb3945 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix config for xsendfile

parent 2d816d5b
No related branches found
No related tags found
1 merge request!26621 update to php82
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
/packages/ /packages/
/public_html/inc_config.php /public_html/inc_config.php
/shellscripts/getfile.sh.cfg /shellscripts/getfile.sh.cfg
static/*
\ No newline at end of file
...@@ -7,7 +7,7 @@ FROM php:8.2-apache ...@@ -7,7 +7,7 @@ FROM php:8.2-apache
RUN apt-get update && apt-get install -y git unzip zip libapache2-mod-xsendfile RUN apt-get update && apt-get install -y git unzip zip libapache2-mod-xsendfile
# enable apache modules # enable apache modules
RUN a2enmod RUN a2enmod xsendfile
# install php packages # install php packages
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
......
# #
# GENERATED BY init.sh - template: ./templates/vhost_app.conf - 5809b7f8d1f4882c4f3569c9ea042045 # GENERATED BY init.sh - template: ./templates/vhost_app.conf - 4dfd63417ad808a5ed00ffaf117464a8
# #
<VirtualHost *:80> <VirtualHost *:80>
DocumentRoot /var/www/ci-pkg/public_html DocumentRoot /var/www/ci-pkg/public_html
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
# redirect requests to handle packages # redirect requests to handle packages
<Location "/packages"> <Location "/packages">
# for Php as php-fpm service:
# SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteEngine on RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L] RewriteRule ^(.*)$ index.php [QSA,L]
...@@ -20,7 +23,7 @@ ...@@ -20,7 +23,7 @@
# download files are outside webroot # download files are outside webroot
XSendFile On XSendFile On
XSendFilePath "/var/www/${APP_NAME}/example-packages/" XSendFilePath "/var/www/ci-pkg/example-packages/"
# example to prevent access with http # example to prevent access with http
<Location "/no-access"> <Location "/no-access">
......
...@@ -15,7 +15,7 @@ APP_PORT=8001 ...@@ -15,7 +15,7 @@ APP_PORT=8001
APP_APT_PACKAGES="git unzip zip libapache2-mod-xsendfile" APP_APT_PACKAGES="git unzip zip libapache2-mod-xsendfile"
#APP_APACHE_MODULES="rewrite" #APP_APACHE_MODULES="rewrite"
APP_APACHE_MODULES="" APP_APACHE_MODULES="xsendfile"
APP_PHP_VERSION=8.2 APP_PHP_VERSION=8.2
# APP_PHP_MODULES="curl pdo_mysql mbstring xml zip xdebug" # APP_PHP_MODULES="curl pdo_mysql mbstring xml zip xdebug"
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
# download files are outside webroot # download files are outside webroot
XSendFile On XSendFile On
XSendFilePath "/var/www/${APP_NAME}/example-packages/" XSendFilePath "/var/www/{{APP_NAME}}/example-packages/"
# example to prevent access with http # example to prevent access with http
<Location "/no-access"> <Location "/no-access">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment