Here is the situation...
I have enabled personal web-sharing on my iMac. I have also set it up to listen on port 81 by editing /etc/httpd/httpd.conf. The reason for this is that my ISP blocks port 80. My linksys WRT54g router is set to forward all requests on port 81 to the local ip address, 192.168.1.105. This local ip address is essentially static as it is obtained using manual dhcp.
Here is where it gets weird...
All requests to port 81 my WAN ip address, which is currently 24.53.134.137, correctly forward to the index file in /Library/WebServer/Documents. However, entering http://24.53.134.137:81/~justin/ does not resolve. Instead, it attempts to load http://justins-imac-g5.local/~justin. Since this is an invalid address, the page fails to load when access from outside of my lan. This problem also exists with subfolders within the document root (ie http://24.53.134.137:81/testfolder).
How do I get Apache to serve pages from any folder other than "/Library/WebServer/Documents". Specifically how would I get http://publicipaddress:81/~justin to correctly forward to http://192.168.1.105:81/~justin instead of http://justins-imac-g5.local:81/~justin ?
EDIT:
I also have my router set up with DynDNS in case the IP address changes. That address is http://jsurratt.dyndns.tv:81
I have enabled personal web-sharing on my iMac. I have also set it up to listen on port 81 by editing /etc/httpd/httpd.conf. The reason for this is that my ISP blocks port 80. My linksys WRT54g router is set to forward all requests on port 81 to the local ip address, 192.168.1.105. This local ip address is essentially static as it is obtained using manual dhcp.
Here is where it gets weird...
All requests to port 81 my WAN ip address, which is currently 24.53.134.137, correctly forward to the index file in /Library/WebServer/Documents. However, entering http://24.53.134.137:81/~justin/ does not resolve. Instead, it attempts to load http://justins-imac-g5.local/~justin. Since this is an invalid address, the page fails to load when access from outside of my lan. This problem also exists with subfolders within the document root (ie http://24.53.134.137:81/testfolder).
How do I get Apache to serve pages from any folder other than "/Library/WebServer/Documents". Specifically how would I get http://publicipaddress:81/~justin to correctly forward to http://192.168.1.105:81/~justin instead of http://justins-imac-g5.local:81/~justin ?
EDIT:
I also have my router set up with DynDNS in case the IP address changes. That address is http://jsurratt.dyndns.tv:81