mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-04 22:52:32 -05:00
Modify RUN sed by RUN echo to configure apache virtualhost
This commit is contained in:
1 parent
a6b3d95d14
commit
b5df76a47a
1 file changed
+2
-2
+2
-2
@@ -34,8 +34,8 @@ RUN wget ${SRC_GLPI} \
|
||||
&& chown -R www-data:www-data ${FOLDER_GLPI}
|
||||
|
||||
#Modification du fichier
|
||||
#RUN echo -e "<VirtualHost *:80>\n\tDocumentRoot /var/www/html/glpi\n\n\t<Directory /var/www/html/glpi>\n\t\tAllowOverride All\n\t\tOrder Allow,Deny\n\t\tAllow from all\n\t</Directory>\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n</VirtualHost>" > /etc/apache2/sites-available/000-default.conf
|
||||
RUN sed -i -- 's/\/var\/www\/html/\/var\/www\/html\/glpi/g' /etc/apache2/sites-available/000-default.conf
|
||||
RUN echo "<VirtualHost *:80>\n\tDocumentRoot /var/www/html/glpi\n\n\t<Directory /var/www/html/glpi>\n\t\tAllowOverride All\n\t\tOrder Allow,Deny\n\t\tAllow from all\n\t</Directory>\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n</VirtualHost>" > /etc/apache2/sites-available/000-default.conf
|
||||
#RUN sed -i -- 's/\/var\/www\/html/\/var\/www\/html\/glpi/g' /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
#Activation du module rewrite d'apache
|
||||
RUN a2enmod rewrite && service apache2 restart
|
||||
|
||||
Reference in new issue
Block a user