xampp/htdocs/project1 にプロジェクトがあります
別のプロジェクトを作成する必要があったので、それらに異なるポートを割り当てることにしたので、xampp/htdocs/project1 は 8080 で実行されます
C:/release/project2 の下にある私の project2 は 7171 で動作します
project2 https を作成する必要があったため、ssl 証明書を作成し、Apache にもすべてをセットアップしました (443 をリッスン)。
https:/xx.xx.xx.xxx:443/project1/login.php でエラーが発生しましたが、https:/xx.xx.xx.xxx:443/project2/login.php ではヒットする可能性があります。
だから私は httpd-ssl.conf で DocumentRoot "C:/xampp/htdocs" を DocumentRoot "C:/release" に次のように変更しました。
しかし、今私はエラーが発生します -
Access forbidden!
You don't have permission to access the requested object. It is either
read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
このエラーは、https:/xx.xx.xx.xxx:443/project1/login.php と https:/xx.xx.xx.xxx:443/project2/login.php の両方で発生します。
パーミッションの問題だと思いましたが、まだこれらの https:/xx.xx.xx.xxx:8080/project1/login.php と https:/xx.xx.xx.xxx:7171/project2/login.php をヒットできます
何が問題なのですか?私はウェブサイト開発に慣れていないので、何が間違っているのかわかりませんでした.htdocsの下にあるプロジェクトはこれに必須ですか、それとも異なるポートの割り当てが間違っていましたか?