cakephp3で開発をしております。
your.com でアクセスした場合、cakephp3が表示され使えるのですが
今回は your.com/hoge/ でアクセスした時に
"cakephpを介さずにそのまま hoge 内のフォルダ及びファイルを参照"
といった事をしたいです。
どのようにすれば良いでしょうか。
今の記述は以下になります。
nginx
1 2# HTTP で接続があった際に HTTPS へリダイレクトする為の設定 3 4server { 5 listen 80; 6 server_name your.com; 7 rewrite ^ https://$server_name$request_uri? permanent; 8} 9 10server { 11 listen 443 ssl http2; 12 listen [::]:443 ssl http2; 13 14#sslの設定ここから 15 ssl_certificate /etc/letsencrypt/live/your.com/fullchain.pem;#ここをfullchain.pemに変更 16 ssl_certificate_key /etc/letsencrypt/live/your.com/privkey.pem; 17 ssl_dhparam /etc/letsencrypt/live/your.com/dhparam.pem; 18 ssl_session_timeout 10m; 19 ssl_prefer_server_ciphers on;ssl_ciphers 'ECDH !aNULL !eNULL !SSLv2 !SSLv3'; 20 add_header Strict-Transport-Security "max-age=31536000;includeSubdomains"; 21#ここまでsslの設定 22server_name your.com; 23root /var/www/html/your.com/webroot/; 24index index.html index.php; 25 26 27 location / { 28 try_files $uri $uri?$args $uri/ /index.php?$uri&$args /index.php?$args; 29 } 30 31 location ~ \.php$ { 32 try_files $uri =404; 33 fastcgi_pass unix:/var/run/php-fpm.sock; 34 fastcgi_index index.php; 35 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 36 include fastcgi_params; 37 } 38 39} 40
以上
よろしくお願いします。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。