dongyuli4538 2019-06-04 14:46
浏览 235

PHP GET请求响应404错误

I own VPS with Debian 9, and Apache2 (with PHP 7) installed, I have enabled Virtual Hosts in Apache and disabled default host. The matter is following: On my localhost server with everything same (Only VirtualHost configuration is different) GET requests work in subdirectories, but after uploading files to VPS's folder var/www/PersonalWebsite/API index.php work normally, but after adding &Example=Nothing it will give me a 404 error, It just looks like GET isnt working (In root directory of website (var/www/PersonalWebsite) get requests work.) If you should ask, no I dont have any .htaccess inside of any folder.

I have already tried to include lines like grant request all (I cant remember how it was called), but then Apache service didnt boot, so when I reverted to previous config it worked, I tried also many restarts, but nothing good. :(

Actually code inside the API file isnt requirement, because as I mentioned on localhost inside my Win10 XAMPP it did work. But Ill show you virtualhost config - www.itzarty.cf.conf contains following:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/PersonalWebsite
    ServerAlias itzarty.cf
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Options Indexes FollowSymLinks
</VirtualHost>

No error messages appear in logs, only the 404 one as mentioned

  • 写回答

1条回答 默认 最新

  • dq23171 2019-06-04 17:41
    关注

    Sorry for this, Im closing this, I just reinstalled the whole system.

    评论

报告相同问题?

悬赏问题

  • ¥15 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用