It works for me on Centos
First: in /etc/httpd/conf/httpd.conf
add
Listen 8079
after
Listen 80
This will allow your server to listen on port 8079.
Second: go to your virtual host for ex. /etc/httpd/conf.d/vhost.conf
and add this code below
<VirtualHost *:8079> DocumentRoot /var/www/html/api_folder ServerName example.com ServerAlias www.example.com ServerAdmin root@example.com ErrorLog logs/www.example.com-error_log CustomLog logs/www.example.com-access_log common </VirtualHost>
This means that when you go to www.example.com:8079 redirect to
/ var / www / html / api_folder
But you need to restart the service first
sudo service httpd restart
Ahmed Al Bermawy Dec 30 '15 at 20:42 2015-12-30 20:42
source share