fix api access and url rewriting

This commit is contained in:
GotPPay
2018-07-09 10:47:39 +02:00
parent 796200e902
commit b662efc7f8
2 changed files with 11 additions and 12 deletions

View File

@@ -4,12 +4,12 @@ RUN docker-php-ext-install pdo pdo_mysql mysqli
RUN a2enmod rewrite ssl
COPY backend /var/www/html
WORKDIR /var/www/html
RUN ln -s ../html api
COPY docker/apache/apache2.conf /etc/apache2/
COPY docker/apache/default-ssl.conf /etc/apache2/sites-available/default-ssl.conf
COPY docker/php/.htaccess /var/www/html/
RUN chown -R www-data:www-data /var/www/html
RUN openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 \