how can I setup httpd.conf so that I can pipe all requests to that port go to a php file?
I am trying to make a socket connection from action script to localhost in flash.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use VirtualHosts…
To have a virtual host work specifically for that port, add the port number to the first line of the virtual host configuration. The first line should look something like the following:
You must also add
to the httpd.conf
Now your server is listening to port 12331. In the VirtualHost configuration you can set the DirectoryIndex to route all default requests to a PHP file
In addition you could also use mod_rewrite and .htaccess files to route specific requests to the same PHP file as well.
I referred to: http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/ref-guide/s1-apache-virtualhosts.html