Adding Vhost for another service, not working
#1
Adding Vhost for another service, not working
Hello, i am trying to use pufferpanel in conjunction with sentora for a web panel and control panel, i do have it sorta working, what i did is add the vhost as follows

<VirtualHost *:80>
   ServerAdmin admin@test.com
   ServerName gpanel.konzor.com
   ServerAlias mcpanel.konzor.com
   DocumentRoot /srv/pufferpanel/public
   ErrorLog ${APACHE_LOG_DIR}/error.log
   CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


to end of  /etc/sentora/configs/apache/httpd-vhosts.conf

and when i do apache2 restart it works fine.
,

but the problem is, if i add a new domain to sentora or sentora updates the httpd-vhost.conf then it gets reset and i have to add the vhost every time, i tried making gpanel.konzor.com and using custom vhost settings but that didnt work, i also tried doing placeholder.konzor.com as the domain and adding the vhost in it. and i tried to even add /etc/apache2/sites-enabled/ in the Global Sentora Entry & Global Apache Entry, and that breaks the vhosts to where i have to manually edit it out for it start apache2, im stuck not sure what to do.
Reply
#2
RE: Adding Vhost for another service, not working
Try adding it to Admin > Module Admin > Apache Config > Global Sentora Entry:
Code:
</VirtualHost> <VirtualHost *:80>   ServerAdmin admin@test.com   ServerName gpanel.konzor.com   ServerAlias mcpanel.konzor.com   DocumentRoot /srv/pufferpanel/public   ErrorLog ${APACHE_LOG_DIR}/error.log   CustomLog ${APACHE_LOG_DIR}/access.log combined
Use exactly as it shows above. Save and wait for the daemon to run, ~5 minutes. You should be good to go then.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: Adding Vhost for another service, not working
thanks so far it seems to work.
Reply
#4
RE: Adding Vhost for another service, not working
thanks, good to know its sorted out Wink
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Increase disk space by adding volume only, it is okay? 7rdoq 10 7 ,902 11-06-2024, 07:27 AM
Last Post: TGates
SSL install breaks apache service EGOSKY123 1 5 ,517 10-28-2020, 12:12 AM
Last Post: iraqiboy90
Add on Domains not working but Main domain works luckyviet 2 7 ,817 03-18-2020, 07:38 PM
Last Post: AanaNahum

Forum Jump:


Users browsing this thread: 1 Guest(s)