File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <VirtualHost *:80>
2+ ServerAdmin webmaster@localhost
3+ DocumentRoot /app/public_html
4+
5+ <Directory "/app/public_html">
6+ Options Indexes FollowSymLinks
7+ AllowOverride All
8+ Require all granted
9+ </Directory>
10+
11+ ErrorLog ${APACHE_LOG_DIR}/error.log
12+ CustomLog ${APACHE_LOG_DIR}/access.log combined
13+ </VirtualHost>
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ FROM php:8.2-apache
44# OSのパッケージリストを更新
55RUN apt-get update
66
7- # Apache の設定を調整
8- RUN a2enmod rewrite && \
9- sed -i 's!/var/www/html!/app/public_html!g' /etc/apache2/sites-available/000-default.conf
7+ # ローカルから Apache の設定ファイルをコピー
8+ COPY .devcontainer/000-default.conf /etc/apache2/sites-available/000-default.conf
109
1110# ロケールの設定 (ja_JP.UTF-8)
1211RUN apt-get update && apt-get -y install locales && \
You can’t perform that action at this time.
0 commit comments