apache - Configuring external access to XAMPP -


i use xampp develop wordpress themes, , want use managewp administer / clone sites production server. have followed every tutorial can find on matter, can't manage external access localhost!

this related se answer seems straightforward!

  1. configure web server listen on external network interface (apache configured listen on localhost default).
  2. open port 80 inbound connections in firewall on computer.
  3. if want people outside lan access server, enable port forwarding in router/gateway, port 80 forwarded computer.
  4. if use dhcp in network, configure dhcp server give computer same address every time (for example, mac address).

i'm pretty sure i've got last 3 steps right, (no firewall, ports 80 tcp&udp > 80, server ip assigned mac address) don't know how first (i've tried playing around in httpd.conf setting servername external ip address, thats wild random fail :)

whilst port forwarding active can see website at: ##.###.64.188/mysite.dev (my external ip) whilst i'm on local network, if connect via 3g mobile connection get:

not found requested url http://<snip> not found on server apache server @ ##.###.64.188 port 3128 

which seems indicate i'm somewhere in right vicinity! no idea go here...

any suggestions? tia, tim

running:

  • xampp v1.7.3
  • mac osx 10.7.4

simple answer here: isp optus blocks incoming connections on port 80. so, i've added:

listen 8080

to httpd.conf , adjusted port forward correspondingly, , connect fine!

for coming after, i've setup http auth directives in ~/sites , /phpmyadmin entries in httpd.conf increased security.

to wp site , links working, i'm setting wp_siteurl dynamically:

// wp-config.php $host = $_server['server_name']; if($host == 'subdomain.mysite.com')     $url = 'http://subdomain.mysite.com:8080'; else      $url = 'http://mysite.dev';  define('wp_home', $url); define('wp_siteurl', $url); 

then, in virtualhost site i'm configuring, i've set <virtualhost *:8080>.. works treat! mission accomplished.

(edit: no longer have xampp installed, , have forgotten directory structure, virtual hosts defined apache2 default: extra/httpd-vhosts.conf, included towards end of httpd.conf)

ps managewp needs whitelisted allow connections past http basic auth.

big garth , river answered call on fb...


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

jquery - Invalid Assignment Left-Hand Side -

gmail - Is there any documentation for read-only access to the Google Contacts API? -