UPUPW本地環境配置thinkphp5的問題


問題解決參考:

https://blog.csdn.net/lengyue1084/article/details/80001625

看httpd-vhosts.conf的配置:

<VirtualHost *:80>
    DocumentRoot "E:/fyz/UPUPW_AP7.0/htdocs/fyz.test.com/web"
    ServerName fyz.test.com:80
    ServerAlias fyz.test.com
    ServerAdmin webmaster@fyz.test.com
    DirectoryIndex index.html index.htm index.php default.php app.php u.php
    ErrorLog logs/fyz.test.com-error.log
    CustomLog logs/fyz.test.com-access_%Y%m%d.log comonvhost
    php_admin_value open_basedir "E:\fyz\UPUPW_AP7.0\htdocs\fyz.test.com\public\;E:\fyz\UPUPW_AP7.0\Guard\;E:\fyz\UPUPW_AP7.0\phpmyadmin\;E:\fyz\UPUPW_AP7.0\temp\;C:\WINDOWS\Temp\"
<Directory "E:/fyz/UPUPW_AP7.0/htdocs/fyz.test.com/web">
    Options FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
<LocationMatch "/(inc)/(.*)$">
    Require all denied
</LocationMatch>
<LocationMatch "/(attachment|attachments|uploadfiles|avatar)/(.*).(php|php5|phps|asp|asp.net|jsp)$">
    Require all denied
</LocationMatch>
</VirtualHost>

由於thinkphp5的入口文件在 public 下所以:

這里也會是在public\ 需要將這個 public\去掉就可以了,去掉之后進行重啟就可以


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM