Skip to content

Instantly share code, notes, and snippets.

@Sansui233
Created December 6, 2020 08:13
Show Gist options
  • Select an option

  • Save Sansui233/782c8fb714c9f76f9e1aee843fc9c289 to your computer and use it in GitHub Desktop.

Select an option

Save Sansui233/782c8fb714c9f76f9e1aee843fc9c289 to your computer and use it in GitHub Desktop.
nginx
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# Default server configuration
#
server {
listen 80;
listen [::]:80;
location /css/index.css {
alias /root/proxypool/assets/css/index.css;
}
location / {
proxy_pass http://127.0.0.1:12580/; # proxypool服务的地址
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment