I need to specify a port on my server (Linux Red Hat 7.2) so that when I access it throgh the browser it forwards me to a certain webpage or folder on the server.
For example, when I write http://domain.com:[FreePort] on the client side, it takes me to an administrator webpage on the server.
I checked the httpd.conf file, the entry you mentioned was already added, and it's well functioning through thr ports 80, 443.
The problem was that I cannot execute any .php file using the port I configured, as I mentioned previously, the HTML code is executing perfictly. The problem is with the server side code like PHP.
finally stop and start apache or since you on live web server you
can issue
kill -TERM `cat /usr/local/apache/logs/httpd.pid`
this will cause any changes to apache's httpd.conf file take affect
without stopping apache.
Note
ScriptAlias /php/ "/usr/local/apache/php"
/usr/local/apache/php will be the location of your php file. e.g
if the local of your php is /www your ScriptAlias will be
ScriptAlias /php/ "/www/php"