I have a local Apache setup with several virtual hosts:
- mywebsite.localhost
- images.mywebsite.localhost
- etc.
I'd like to make these available on my local network, to test my website on mobile devices. Other questions on Stack led me to the proxy solution, where I will use my computer's IP address as a proxy on the iPhone/iPad.
I want the proxy to:
- Process any request as if it was originated from my computer (including
*.localhost
names) - Deny requests from IP addresses not in the
192.168.*
range
I've enabled mod_proxy:
LoadModule mime_module modules/mod_mime.so
LoadModule proxy_http_module modules/mod_proxy_http.so
I've (hopefully) secured it:
<Proxy *>
Order Deny,Allow
Deny from all
Allow from 192.168
</Proxy>
Now I'm struggling to answer these questions:
- Will the proxy run on port
80
as well, or should it run on another port? - How do I configure the proxy to forward all requests as stated above?