简体   繁体   English

从端口80移除Nginx并添加apache

[英]Remove nginx from port 80 & add apache instead

i am using xfilesharing script on my website & have installed VestaCP on server.Website giving error when i am trying to upload files more than 200 MB.i have talked to support & they asked me to use Apache instead Nginx.i stopped nginx on my domain & the error still persists.agaun called support & they said nginx still on port 80 (Even after restarting server).support told me to set apache port to 80 instead. 我在我的网站上使用xfilesharing脚本并在server.Web服务器上安装了VestaCP。当我尝试上传200 MB以上的文件时出现错误。我已经与支持进行了交谈,他们要求我使用Apache代替Nginx.i在我的网站上停止了nginx域和错误仍然存​​在。再次调用了support,他们说nginx仍然在端口80上(即使在重新启动服务器之后)。support告诉我将apache端口设置为80。 i don't know how to set it.i am new to linux & never used up VestaCP.can anyone help me with a step by step guide on how can i set apache to listen port 80 & nginx to not to listen port 80. please give a step by step guide if you have.thanks in advance 我不知道如何设置它。我是linux的新手,并且从未用过VestaCP。有人可以帮助我逐步说明如何将apache设置为监听端口80和nginx而不监听端口80。如果您有需要,请逐步提供指导。

keep nginx in place 保持Nginx到位

/etc/php5/fpm/php.ini /etc/php5/fpm/php.ini

upload_max_filesize = 300M 
post_max_size = 300M

nginx add Nginx添加

http {
    #...
         client_max_body_size 300m;     
#... }

service php5-fpm restart; 服务php5-fpm重新启动; service nginx restart 服务nginx重启

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM