User Tools

Site Tools


docker:nginx:virtual_host

Docker - Nginx - Virtual Host

server {
listen 7080;
listen [::]:7080;
 
server_name example.com www.example.com;
 
location / {
  root /var/www/*server*/html;
  index index.html index.php index.htm;
  try_files $uri $uri.html $uri/ =404;
}
 
location = /favicon.ico {
  alias /var/www/*server*/html/images/favicon.ico;
}
docker/nginx/virtual_host.txt · Last modified: 2025/07/21 09:55 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki