Golang Web page based on Beego web framework to freely configure Nginx virtual host

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Nginxconf

Web page free configuration nginx virtual Host

The project is based on the Golang Beego Web framework to implement the function of creating a new Nginx proxy configuration file and automatically invoking the Nginx reload command temporarily without implementing the Delete profile command

Application Scenarios

Nginx need to implement proxy access to multiple hosts, operators need not understand nginx configuration only need to click on the Web page mouse can be multiple Golang applications in the server background running in the non-80 port, nginx more different domain name Agent access to different Golang applications

What can be done after the transformation?

Add more nginx configuration template, can achieve load balancing, automatic configuration of virtual host and other advanced nginx features Nginx configuration template for Nginxconf/template/domainlocalconf.tpl

The project uses Help

Because I compiled on the windows, temporarily did not find the cross-compiling SQLite to Linux method, the program's data stored in SQLite, although I compiled a Linux environment 32-bit compiled files, but because Oschina will not be uploaded. After running successfully enter user name Admin password adminpwd, if need change password please change user = admin pwd = adminpwd in/conf/app.conf config file

The library used by the project

Beego "Github.com/astaxie/beego" Go-sh "Github.com/codeskyblue/go-sh"


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.