我的ngix站点配置文件(/ etc/nginx/sites-enabled /)如下所示.现在我可以访问此网站,localhost但我想知道如何更改网站网址localhost/gitlab.我需要localhost保留一个不同的网站.
upstream gitlab {
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket;
}
server {
# listen *:80 default_server; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea
server_name localhost; # e.g., server_name source.example.com;
server_tokens off; # don't show the version number, a security best practice
root /home/git/gitlab/public;
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;
error_log /var/log/nginx/gitlab_error.log;
location / {
# serve static files from defined root folder;.
# @gitlab is a …Run Code Online (Sandbox Code Playgroud)