Created
December 6, 2020 08:13
-
-
Save Sansui233/782c8fb714c9f76f9e1aee843fc9c289 to your computer and use it in GitHub Desktop.
nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| # 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