A
A
Andrew2020-12-01 15:42:55
Nginx
Andrew, 2020-12-01 15:42:55

How to set up Vps in Nginx Apache connection on Webuzo?

Good afternoon. I am setting up a VPS server in Nging + Apache. The configuration is done in the Webuzo Centos 7 panel in a couple of clicks from the proxy to Apache on port 8080.

All permissions are included FastCgi Gzip. The site loads, there are no errors, but when you go to any page, the main page is displayed, although the path of the correct page.

Already dug up the whole thing. Ports are listening rewrite is enabled, there are permissions, disabled htaccess if connected the same thing if you remove the redirect to https with a redirect error, manually set the proxy settings in the ngnix config. then nginx doesn't work at all.
Here are the Nginx settings Webuzo creates its file in conf.d

server {	
  listen		*:80;
  server_name	modbuy.shop www.modbuy.shop;
  # The Document Root
  root		/var/gadg/modbuy.shop;
  
  error_log	/nginx/var/log/modbuy.shop.err;
  access_log	/nginx/var/log/modbuy.shop.log main;
  
  include		/nginx/etc/conf.d/common;
}

This is also the webuzo config in Apache where all sites are registered, there is also SSl the same thing only with a different port

<VirtualHost 31.131.18.71:8080>		
  
  <Directory /modbuy.shop/cgi-bin>
    RMode stat
    RUidGid gadgesti gadgesti
  </Directory>		
  
  ServerName modbuy.shop
  ServerAlias www.modbuy.shop
  
  DocumentRoot /modbuy.shop
  
<FilesMatch \.php$>
  <If "-f %{REQUEST_FILENAME}">
    SetHandler "proxy:unix: /php73/var/php73_9000.sock|fcgi://localhost"	
  </If>
</FilesMatch>
  ScriptAlias /cgi-bin /modbuy.shop/cgi-bin/
  ServerAdmin [email protected]
  ErrorLog /apache2/logs/modbuy.shop.err
  CustomLog /apps/apache2/logs/modbuy.shop.log combined
</VirtualHost>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-12-02
@Majestty

In general, I sort of found the problem, I managed to raise one site, well, it didn’t quite work out, of course, now all pages are opening except the main one, along the way ngnix is ​​very capricious and you need to make settings for each site depending on cms separately. And after the tests, the speed increase turned out to be insignificant, so I decided to stay on Apache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question