-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Multiple websites, static, and with database #143
Comments
Right now this "support" is less about actively supporting hosting websites alongside with your email as a first-party feature, rather it is modified to be less intrusive and get less in your way (allowing you to use the tools you're most comfortable with). However, you'll still need to fiddle and play with nginx configurations (which is something I'm not sure I documented very well tbh, need to work on this later when I have time). Or in a nutshell: if you install postgresql/mysql on the box, it will not be "touched" by the management daemon (There is one exception: Apache, since it conflicts with Nginx directly). You'll still need to install all the tools manually, but as long as you can proxy them via Nginx (it offers a reverse proxy feature), it shouldn't be an issue (the box will then be able to automatically provision the SSL certificates for those sites if you choose to make them public) Let me know if you have any other questions! 😄 |
Have look at the folder /home/user-data/www/ on your server. In there is a conf file for every domain generated on your PMaiB server. By adding a single line into one of the .conf file your can include a web service located somewhere else on your box for each domain. For example, in myboxdomain.co.za.conf you'll see:
If you add a reverse proxy config in there, you don't have to worry about PMiaB updates breaking your web servers. I think that gives you and idea of how it can be done. You may even be able to install something like webmin, as long as you avoid the ports that PMiaB is using and then reverse proxy those sites via these .conf files. |
Hi, I currently have requirement for multiple static websites only, I got enough hint from your response. When I will add another domain to use with mail box Which I can edit and redirect to my webpage. Although it is too much technical for me Thanks, |
The way to learn how this works is by trying it out. Create your website somehow. Then try to add a line to point Nginx to the webserver. Suppose you install wordpress and run it on port 81 instead the default port 80. You would then add something like this to the .conf file for the domain PMiaB has configured for you:
Try it to see if you can get it going. PS. If you install Wordpress and you need a config for nginx, then add the important lines into the .conf file. (Don't put the server { directive in, since that's already in the PMiaB config. Only add the location parts) |
Hi,
Greetings,
I want inputs about the following:
`Also be your web server - if you want:
`
Is there any management tool for this, a web based UI to do all this?
Without disturbing the existing setup
Regards.
The text was updated successfully, but these errors were encountered: