File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ FROM php:8.2-apache
4
4
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
5
5
RUN apt-get update && apt-get upgrade -y
6
6
7
- RUN a2enmod rewrite && \
7
+ RUN a2enmod ssl && a2enmod rewrite && \
8
+ mkdir -p /etc/apache2/ssl && \
8
9
mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
9
10
10
11
COPY ./WordPress /var/www/html
11
12
12
13
EXPOSE 80
14
+ EXPOSE 443
Original file line number Diff line number Diff line change 1
1
ServerName local.jquery.com
2
2
3
3
<VirtualHost *:80>
4
- ServerName local.jquery.com
4
+ ServerAlias *.jquery.com *.jqueryui.com *.jquery.org *.jquerymobile.com
5
+ DocumentRoot /var/www/html
6
+ php_value memory_limit 1024M
7
+ <Directory /var/www/html>
8
+ Options All
9
+ AllowOverride All
10
+ Order allow,deny
11
+ Allow from all
12
+ </Directory>
13
+ </VirtualHost>
14
+
15
+ <VirtualHost *:443>
16
+ SSLEngine on
17
+ SSLCertificateFile /etc/apache2/ssl/cert.pem
18
+ SSLCertificateKeyFile /etc/apache2/ssl/cert-key.pem
19
+
5
20
ServerAlias *.jquery.com *.jqueryui.com *.jquery.org *.jquerymobile.com
6
21
DocumentRoot /var/www/html
7
22
php_value memory_limit 1024M
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ services:
15
15
- ./jquery-wp-content:/var/www/html/wp-content
16
16
- ./uploads:/var/www/html/wp-content/uploads:rw
17
17
- ./wp-config.php:/var/www/html/wp-config.php
18
+ - ./ssl:/etc/apache2/ssl
18
19
- ./apache/.htaccess:/var/www/html/.htaccess
19
20
- ./apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
20
21
ports :
21
- - " ${JQUERY_WP_HTTP_PORT:-9412}:80"
22
+ - " 80:80"
23
+ - " 443:443"
22
24
networks :
23
25
- jquerynet
24
26
@@ -31,7 +33,7 @@ services:
31
33
volumes :
32
34
- jquerydbdata:/var/lib/mysql
33
35
ports :
34
- - " ${JQUERY_WP_MYSQL_PORT:-9414} :3306"
36
+ - " 3306 :3306"
35
37
networks :
36
38
- jquerynet
37
39
Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
define ( 'JQUERY_STAGING ' , true );
11
- define ( 'JQUERY_STAGING_FORMAT ' , 'local.%s:9412 ' );
11
+ // define( 'JQUERY_STAGING_FORMAT', 'local.%s:9412' );
12
+ define ( 'JQUERY_STAGING_FORMAT ' , 'local.%s ' );
12
13
require_once __DIR__ . '/wp-content/sites.php ' ;
13
14
define ( 'JQUERY_LIVE_SITE ' , jquery_site_extract ( $ _SERVER ['HTTP_HOST ' ] ?? 'jquery.com ' ) );
14
15
You can’t perform that action at this time.
0 commit comments