Diff for "Running/RemoteAccess"

Not logged in - Log In / Register

Differences between revisions 12 and 20 (spanning 8 versions)
Revision 12 as of 2012-05-04 08:15:32
Size: 1764
Editor: wgrant
Comment: Rewrite to use the new make install LISTEN_ADDRESS var
Revision 20 as of 2022-06-17 12:37:30
Size: 100
Editor: cjwatson
Comment: update link
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Running/LocalNetwork
||<tablestyle="width: 100%;" colspan=3 style="background: #2a2929; font-weight: bold; color: #f6bc05;">This page tells you how to modify a development Launchpad so you can access it from other machines. [[Help|Ask for help]] right away if you run into problems. ||

These instructions assume that you already have Launchpad working for local access, and now you want it to be accessible from other machines on the same LAN, or perhaps the virtual machine or LXC host.

== Amending the Apache configuration ==
Launchpad's default development Apache config (`/etc/apache2/sites-available/local-launchpad`) only listens on 127.0.0.88. This can be overriden with the LISTEN_ADDRESS environment variable when running `make install`. You probably want to make it listen on everything:
{{{
sudo make LISTEN_ADDRESS=* install
}}}

== Amending the hosts file ==
Launchpad makes extensive use of virtual hosts, so you'll need to add entries to `/etc/hosts` on any machine from which you want to access the Launchpad instance. You'll see the relevant hostnames in `/etc/hosts` on the machine running the instance -- they need to be added to the remote machine, mapped to the server machine or container's external IP address.

If some of those other machines run Windows, it may be helpful to know that the Windows equivalent of `/etc/hosts` is located at `C:\WINDOWS\system32\drivers\etc\hosts`. Note that Windows' version has a line length limit, so you might have to split it across multiple lines or only include the hostnames that you need.

== That's it! ==
If you did everything above, you should new be able to access `https://launchpad.dev/` in a web browser on a suitably configured remote computer.
#refresh 0 https://launchpad.readthedocs.io/en/latest/how-to/running.html#setting-up-remote-access

Running/RemoteAccess (last edited 2022-06-17 12:37:30 by cjwatson)