This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:
#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
Thanks given by: AmazingAlex224
#3
RE: Adding Vhost for another service, not working
thanks so far it seems to work.
Reply
Thanks given by:
#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
Thanks given by:


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

Forum Jump:


Users browsing this thread: 3 Guest(s)