I have been using Apache2 web server behind Nginx reverse proxy for several years.
I recently read that OLS is much faster than Apache2, so I started testing.
The Nginx reverse proxy server manages TLS (LE) certs. It is configured so that when a user enters the URL
	
	
	
		
it is always redirected to
	
	
	
		
This is all solved by the Nginx reverse proxy.
The nginx reverse proxy communicates with Apache2 unencrypted on port 80, because encryption is provided by Nginx.
I want to leave everything as is and replace Apache with OLS.
So far I've launched a website without www, but not www.
I would like to put the config file here, but I don't know where it is located.
By the way, my apache config looks like this
	
	
	
		
How should I configure OLS to work properly?
								I recently read that OLS is much faster than Apache2, so I started testing.
The Nginx reverse proxy server manages TLS (LE) certs. It is configured so that when a user enters the URL
		Code:
	
	example.com
http://example.com
https://example.com
www.example.com
http://www.example.com
https://www.example.com
		Code:
	
	https://www.example.comThe nginx reverse proxy communicates with Apache2 unencrypted on port 80, because encryption is provided by Nginx.
I want to leave everything as is and replace Apache with OLS.
So far I've launched a website without www, but not www.
I would like to put the config file here, but I don't know where it is located.
By the way, my apache config looks like this
		Code:
	
	<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/www.example.com/
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    RemoteIPHeader X-Real-IP
    RemoteIPInternalProxy 192.168.20.10
  <Directory "/var/www/www.example.com">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>
								
									Last edited: 
								
							
						
						
	
					 
				