correction image wp
This commit is contained in:
parent
82a4442472
commit
e9bc584efa
@ -9,13 +9,14 @@ RUN chmod +x /usr/local/bin/wp
|
||||
|
||||
# Configuration apache
|
||||
RUN cd /app/public
|
||||
COPY apache.conf /etc/apache2/conf.d/zapp.conf
|
||||
COPY apache.conf /etc/apache2/conf.d/nine/site.conf
|
||||
|
||||
# Installation des sources wordpress
|
||||
RUN wp core download --path=/app/public --locale=fr_FR
|
||||
RUN chown -R apache:apache /app/public
|
||||
RUN find /app/public -type d -exec chmod 755 {} +
|
||||
RUN find /app/public -type f -exec chmod 644 {} +
|
||||
RUN chmod -R u=rwX,g=rX,o=rX /app/public
|
||||
#RUN find /app/public -type d -exec chmod 755 {} +
|
||||
#RUN find /app/public -type f -exec chmod 644 {} +
|
||||
|
||||
RUN mkdir /docker
|
||||
COPY entrypoint.sh /docker/entrypoint.sh
|
||||
|
@ -2,6 +2,7 @@ LoadModule rewrite_module modules/mod_rewrite.so
|
||||
ServerName nineapache.local
|
||||
DocumentRoot "/app/public"
|
||||
Alias /wordpress /app/public
|
||||
LogLevel alert rewrite:trace3
|
||||
<Directory "/app/public">
|
||||
Options FollowSymLinks
|
||||
AllowOverride Limit Options FileInfo
|
||||
@ -13,7 +14,7 @@ Alias /wordpress /app/public
|
||||
|
||||
RewriteEngine On
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
RewriteBase /wordpress/
|
||||
RewriteBase /
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
|
||||
# add a trailing slash to /wp-admin
|
||||
|
@ -2,4 +2,3 @@
|
||||
# wordpress
|
||||
ProxyPass /wordpress http://wordpress/wordpress retry=0 keepalive=On
|
||||
ProxyPassReverse /wordpress http://wordpress/wordpress retry=0
|
||||
|
||||
|
@ -11,3 +11,5 @@ services:
|
||||
- nine-network
|
||||
volumes:
|
||||
- ./services/50-wordpress/volume/data:/app/public/wp-content
|
||||
ports:
|
||||
- "8080:80"
|
||||
|
Loading…
Reference in New Issue
Block a user