Ubuntu Virtual Servers: Difference between revisions

From VistApedia
Jump to navigationJump to search
Perspectoff (talk | contribs)
No edit summary
 
Perspectoff (talk | contribs)
No edit summary
Line 1: Line 1:
(This section is under construction.)
(This section is under construction.)
The idea is to use a URL for your site (that is registered on Internet DNS (Domain Name Servers)) to access the VistA server, instead of the actual IP address. However, almost always all configurations involve a LAN, so often the URL that has been registered will point to the IP address of the router for your LAN.
=== NAT ===
Consumer-grade routers generally use NAT port-forwarding to send traffic the arrives at the router to a specific computer (such as the one hosting the VistA server) on the LAN. Your specific router's configuration utility (often accessible from a web browser) should be able to allow you to configure NAT port forwarding.
With Astronaut, all communications are sent through a secure SSH tunnel. By convention, SSH communications are often sent on port 22 (but that can be changed). If you only have one SSH server on your LAN, using port 22 will be fine. However, if there are more than one SSH servers on your LAN, or if you want a modicum of greater security, then another port for SSH can be used.)


*Copy and edit a configuration file in the Apache2 sites-available folder.
*Copy and edit a configuration file in the Apache2 sites-available folder.
Line 5: Line 12:
  sudo cp default worldvista
  sudo cp default worldvista
  sudo kate worldvista
  sudo kate worldvista
 
<!--->
*Edit the virtual host file so that it looks like:
*Edit the virtual host file so that it looks like:
  <VirtualHost *:9260>
  <VirtualHost *:9260>
Line 13: Line 20:
  ServerAlias www.''worldvista.myoffice.org'' ''worldvista.myoffice.org''
  ServerAlias www.''worldvista.myoffice.org'' ''worldvista.myoffice.org''
  </VirtualHost>
  </VirtualHost>
 
<--->
*Edit the virtual host file so that it looks like:
<VirtualHost *:22>
ServerAdmin webmaster@''worldvista.myoffice.org''
DocumentRoot /opt/worldvista/EHR
ServerName ''worldvista.myoffice.org''
ServerAlias www.''worldvista.myoffice.org'' ''worldvista.myoffice.org''
</VirtualHost>
where ''worldvista.myoffice.org'' is an example URL for your server (use your own, of course)
where ''worldvista.myoffice.org'' is an example URL for your server (use your own, of course)


*Restart Apache2:
*Restart Apache2:
  sudo /etc/init.d/apache2 restart
  sudo /etc/init.d/apache2 restart
<!--->
*Make sure your router forwards port 9260 to the (static) IP address (on your LAN) at which the computer (or virtual machine) hosting the VistA server resides.
<--->
*Make sure your router forwards port 22 to the (static) IP address (on your LAN) at which the computer (or virtual machine) hosting the VistA server resides.
==== Changing the SSH port ====
(Under construction).


*Make sure your router forwards port 9260 to the (static) IP address (on your LAN) at which the computer hosting the VistA server resides.
* See [http://ubuntuguide.org/wiki/Ubuntu:Karmic#Setup_an_SSH_server Ubuntuguide's section on SSH] in the meantime.

Revision as of 15:06, 3 February 2010

(This section is under construction.)

The idea is to use a URL for your site (that is registered on Internet DNS (Domain Name Servers)) to access the VistA server, instead of the actual IP address. However, almost always all configurations involve a LAN, so often the URL that has been registered will point to the IP address of the router for your LAN.

NAT

Consumer-grade routers generally use NAT port-forwarding to send traffic the arrives at the router to a specific computer (such as the one hosting the VistA server) on the LAN. Your specific router's configuration utility (often accessible from a web browser) should be able to allow you to configure NAT port forwarding.

With Astronaut, all communications are sent through a secure SSH tunnel. By convention, SSH communications are often sent on port 22 (but that can be changed). If you only have one SSH server on your LAN, using port 22 will be fine. However, if there are more than one SSH servers on your LAN, or if you want a modicum of greater security, then another port for SSH can be used.)

  • Copy and edit a configuration file in the Apache2 sites-available folder.
cd /etc/apache2/sites-available
sudo cp default worldvista
sudo kate worldvista
  • Edit the virtual host file so that it looks like:
<VirtualHost *:22>
ServerAdmin webmaster@worldvista.myoffice.org
DocumentRoot /opt/worldvista/EHR
ServerName worldvista.myoffice.org
ServerAlias www.worldvista.myoffice.org worldvista.myoffice.org
</VirtualHost>

where worldvista.myoffice.org is an example URL for your server (use your own, of course)

  • Restart Apache2:
sudo /etc/init.d/apache2 restart
  • Make sure your router forwards port 22 to the (static) IP address (on your LAN) at which the computer (or virtual machine) hosting the VistA server resides.

Changing the SSH port

(Under construction).