wslのUbuntu18.04を使っています
https://ja.osdn.net/users/earlgreyx/pf/WSL-INSTALL-LAMP/wiki/FrontPage
上記のURLよりシェルスクリプトを利用してLAMP環境を構築しております。
そこから下記のようにフォルダ変更を行っています
rm -fr /var/www/html cd /var/www ln -s /mnt/c/www/html html
上記のようにフォルダ構成を変更しております
(c:\www\htmlにシンボリックリンクしています)
DocumentRootは
/mnt/c/www/htmlです。
フォルダ構成は下記のとおりです
C:\WWW\HTML │ .htaccess │ index.php │ phpinfo2.php │ ├─app │ │ .htaccess │ │ index.php │ │ │ │ │ │ │ └─webroot │ │ .htaccess │ │ index.php │ │ phpinfo.php │ │ test.html │ │
上記状態で
localhost/test.htmlは表示されます
localhost/phpinfo.phpは下記のエラー
The requested URL /phpinfo.php was not found on this server.
localhost/phpinfo2.phpはチャントphpinfoが動作ししました。
webrootにあるphpinfo.phpをindex.phpにリネームして確認
localhost/index.phpはチャントphpinfoが動作ししました。
上記のような状態の場合
どのあたりの設定やファイルを確認していけばよいですか??
#webroot htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </IfModule>
#html htaccess <IfModule mod_rewrite.c> RewriteEngine on # Uncomment if you have a .well-known directory in the root folder, e.g. for the Let's Encrypt challenge # https://tools.ietf.org/html/rfc5785 #RewriteRule ^(.well-known/.*)$ $1 [L] RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> ModPagespeed On