Add a custom vhost to cPanel server?
I want to run the Laravel API with a specified port 5000. Because there is another websocket also running on port 8090.
I have done this regular way on Ubuntu 18.04 server with the following vhosts
/etc/apache2/sites-available/206.189.xxx.xxx.conf
/etc/hosts
/etc/ports.conf
How can I add these configurations to WHM and cPanel?
ServerName 206.189.xxx.xxx
ServerAdmin webmaster@localhost
DocumentRoot /var/www/myapi/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
AllowOverride All
/etc/hosts
127.0.0.1 206.189.xxx.xxx/etc/ports.conf
Listen 5000 #Newly addedHow can I add these configurations to WHM and cPanel?
-
Hello @Sakthybaalan, You can find information about how to modify your Apache virtual host containers with include files on our helpful. Let me know if you have any questions about how to setup the include files. Thank you. 0 -
Thank you cPanelMichael I read the article of tomcat but It is very difficult to understand, so please help to modify as my request in the safe manner which will not affect the current running websites. 0 -
Hello @Sakthybaalan, Could you share a link to the README (or installation instructions) that you are following? I'm happy to perform a setup on a test server and provide you with the information you need to ensure it functions with cPanel & WHM. Thanks! 0 -
Hello @ And I used this API 0 -
Hello @Sakthybaalan, The following script will allow you to assign one or more ports to a specific user: Let me know if this helps. Thank you. 0
Please sign in to leave a comment.
Comments
5 comments