Page 1 of 1

How to add port number to certain folders

Posted: Mon Jan 15, 2018 5:35 pm
by emammadov
Hello,

We are using Vestacp and have several domains in it.
We have a project that runs on port 8085 associated with ip address on the other linux server. Now we want to move that project into this current vestacp server. I thought I can add this via vestacp admin panel, but I couldn't do it. It should look like this: http://ip_address:8085

What I tried
I have opened port 8085 in Firewall and added this virtualhost to /home/admin/conf/web/httpd.conf file. But it didn't work. Web browser shows this error: Hmmm...can’t reach this page

I have also added virtualhost to /etc/httpd/httpd.conf file and Listen port 8085 and restarted apache server, it was okay, but when I wanted to access via web browser it gave me an error. Please help me to solve this issue.

VirtualHost
<VirtualHost ip_address:8085>
ServerName ip_address:8085
ServerAdmin [email protected]
DocumentRoot /var/www/xmltv/
<Directory /var/www/xmltv>
DirectoryIndex xmltv.xml
AllowOverride All
Options FollowSymLinks
Require all granted
</Directory>
</VirtualHost>

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Re: How to add port number to certain folders

Posted: Tue Jan 16, 2018 8:10 pm
by ScIT
Your request makes no sense to me, but you can create your own template - check the files in /usr/local/vesta/data/templates/web/nginx.