No źle to wygląda, to nawet security issue jest :D pewnie już cię jakieś boty przeskanowały i jeżeli miałeś jakieś hasła w appsettings
ach, to lepiej pozmieniać :P
edit.
A nie chodzi o tę sekcje DocumentRoot?
DocumentRoot
In deciding what file to serve for a given request, httpd's default behavior is to take the URL-Path for the request (the part of the URL following the hostname and port) and add it to the end of the DocumentRoot specified in your configuration files. Therefore, the files and directories underneath the DocumentRoot make up the basic document tree which will be visible from the web.
A patrzyłeś to? Host ASP.NET Core on Linux with Apache
Oni tu mają taki cfg:
<VirtualHost *:*>
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
</VirtualHost>
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/
ServerName www.example.com
ServerAlias *.example.com
ErrorLog ${APACHE_LOG_DIR}helloapp-error.log
CustomLog ${APACHE_LOG_DIR}helloapp-access.log common
</VirtualHost>
Generalnie nie używałem nigdy apacha, ale jakbyś chciał to z nginxiem jest to banalne
sudo apt-get install nginx
i w /etc/nginx/sites-available
edytujesz default
wrzucasz
server {
listen 80;
server_name example.com *.example.com;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
i restartujesz