Page 1 of 1

Custom site with Vesta Panel

Posted: Mon May 22, 2017 11:46 am
by Stan
Hey,

I recently started using VestaCP and I ran into a problem. I'm trying to install a game-server-management panel on my vps, it requires me to do this: https://docs.pterodactyl.io/docs/webser ... figuration. I don't know how to do this. I've tried numerous things but I didn't succeed.

I hope someone can help :)

Sincerely,
Stan

Re: Custom site with Vesta Panel

Posted: Mon May 22, 2017 12:02 pm
by ArisC
If you dont tell us exactly the problem we cant help you...........

Re: Custom site with Vesta Panel

Posted: Mon May 22, 2017 12:09 pm
by Stan
The instructions on their website tell me to add a file called pterodactyl.conf in this directory: '/etc/nginx/sites-available/', or this one (if using apache): '/etc/apache2/sites-available'. But I don't know where to put it because it seems like vesta doesn't use those locations. It also confuses me as it uses both apache and nginx. So how would I do this?

Re: Custom site with Vesta Panel

Posted: Mon May 22, 2017 12:22 pm
by ArisC
ehh i dont know how to set it on apache+nginx

Re: Custom site with Vesta Panel

Posted: Mon May 22, 2017 9:17 pm
by Trentor
Stan wrote:The instructions on their website tell me to add a file called pterodactyl.conf in this directory: '/etc/nginx/sites-available/', or this one (if using apache): '/etc/apache2/sites-available'. But I don't know where to put it because it seems like vesta doesn't use those locations. It also confuses me as it uses both apache and nginx. So how would I do this?
I suppose you are using Ubuntu (if you are using CentOS, e.g., the directories are differents).

Create your conf files under Nginx folder (/etc/nginx/sites-available/). Vesta respects that config files.

Re: Custom site with Vesta Panel

Posted: Fri May 26, 2017 1:28 am
by BBuchanan1013
The site gives you instructions for using Nginx AND Apache. So if your using both, then you need to set it up with both. If not, only use what you need.

If you read my post about Global ServerName here you'll see that apache (and I'm guess Nginx as well) use the OS default directories first.

Another way to put it so it's not super confusing for everyone:

When Apache or I assume Nginx starts it has to read it's defaults (apache.conf or nginx.conf)
It's default configuration tells it where to read other files if there are no errors from default
So it'll goto the next step and read the extra configurations for example with apache, anything in conf.d that ends with .conf
If there are no errors, it'll serve up those pages

There are system linked files (that's when you use the ln -s command) in the conf.d folder that Vesta tells Apache in this case the next conf file to read. So long as there are no errors the system runs normally.

And now that I'm far off topic, back to it.

The instructions they give are pretty thorough. If you need any help deciphering what they're telling ya, give us some more info:

What OS
Which (or both) your using (apache/nginx)
What you've done so far