Title: Apache, Mac, Web Server Question &#8230;
Last modified: August 18, 2016

---

# Apache, Mac, Web Server Question …

 *  [thornomad](https://wordpress.org/support/users/thornomad/)
 * (@thornomad)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/)
 * Hi,
 * I have a number of various wordpress installs running on my local machine (Mac
   with Apache, mysql, php-engine). On my local machine and on my local network 
   everything works perfectly (at, [http://192/168.1.100/~myusername](http://192/168.1.100/~myusername)).
 * However, when I access my local machine from afar (through my public IP address)
   I still can get my wordpress sites, however, the THEMES are missing. There is
   no CSS being loaded, no graphics, nothing. Just plain, unformatted text with 
   no graphics.
 * I remember having a problem like this before when I changed the root directory
   or something; but, anyhow:
 * Does anyone know what would cause this to work on the local network but not publicly?
 * PS: bbpress installs and drupal installs all do the same thing so I know it is
   not wordpress, just don’t know how to fix it.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [thornomad](https://wordpress.org/support/users/thornomad/)
 * (@thornomad)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-407779)
 * Hi,
 * I noticed that it seems WordPress interpreters my “root” directory to be my computer
   name (e.g., [http://damons-computer/wordpress/](http://damons-computer/wordpress/))
   when it processes all of my generated links in the HTML from the remote machine.
 * However, if I am afar, it seems to need to insert the public IP address for all
   of the links/images/etc to work.
 * Any idea how to get wordpress to link to the correct location so a remote user
   can get to my images and files ?
 * Thanks,
    Damon
 *  Thread Starter [thornomad](https://wordpress.org/support/users/thornomad/)
 * (@thornomad)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-407783)
 * I found that if I change my “website address” and “blog address” under admin/
   options, to the public IP address, remote viewers can access the site — however,
   I can no longer get it on my local machine and had to change it back.
 * Is there any way to configure the mod_rewrite file or .htaccess file to update
   the links accordingly so both work ?
 * D
 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-407816)
 * You need to use the public IP address in the WP options boxes then edit your 
   computer’s hosts file to load the address locally.
    Try adding `127.0.0.1 your.
   ip.address` Extra information here: [http://wordpress.org/support/topic/58402](http://wordpress.org/support/topic/58402)
 *  Thread Starter [thornomad](https://wordpress.org/support/users/thornomad/)
 * (@thornomad)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-407969)
 * Hi Ian — do you know where this “hosts” file is on a mac with Apache ?
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-407970)
 * err, do you have a “etc” or “/etc” by chance?
 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-408054)
 * There is a full how-to [here](http://www.axiom.co.uk/blog/2004/08/editing-hosts-file-in-os-x.html)
   and an alternative (which I knew nothing of) using NetInfo Manager.
    [Note you
   will probably be needing to log in with admin rights to do this]
 *  Thread Starter [thornomad](https://wordpress.org/support/users/thornomad/)
 * (@thornomad)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-408129)
 * Hey, yea, I found it under /private/etc/ — there is a “hosts.lpd” file there.
 * I don’t have a dynamic DNS setup anymore (mind expired) but were I to, I would
   write:
 * `127.0.0.1 my.dynamic.dns` ?
 * Would it work with the public IP address that is shown at whatismyip.com ? Such
   as:
 * `127.0.0.1 24.243.121.3` ?
 * There is nothing in my `hosts.lpd` file just now.
 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-408171)
 * You should have a `hosts` file as well as `hosts.lpd` in that folder. It is `
   hosts` that you want to edit. With a clean install mine reads:
    `## # Host Database##
   localhost is used to configure the loopback interface # when the system is booting.
   Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost::
   1 localhost
 * What you are planning should work though. As an IP address might change, setting
   up a new dynamic DNS might be easiest.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Apache, Mac, Web Server Question …’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [mac](https://wordpress.org/support/topic-tag/mac/)
 * [OS](https://wordpress.org/support/topic-tag/os/)
 * [server](https://wordpress.org/support/topic-tag/server/)
 * [X](https://wordpress.org/support/topic-tag/x/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 8 replies
 * 3 participants
 * Last reply from: [iand](https://wordpress.org/support/users/iand/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/apache-mac-web-server-question/#post-408171)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
