I've an apache server running, with mongrels underneath running rails. The apache config apply for my rails application appears like this:

<VirtualHost *:80>
  ServerName trunk.production.charanga
  ServerAlias max.trunk.production.charanga

  DocumentRoot /home/max/work/e_learning_resource/trunk/public

  RewriteEngine On

  <Proxy balancer://mongrel1>
    BalancerMember http://127.0.0.1:5010
  </Proxy>

  # Redirect all non-static requests to thin
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ balancer://mongrel1%{REQUEST_URI} [P,QSA,L]

  ProxyPass / balancer://mongrel1/
  ProxyPassReverse / balancer://mongrel1/
  ProxyPreserveHost on

  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  # Custom log file locations
  ErrorLog  /home/max/work/e_learning_resource/trunk/log/error.log
  CustomLog /home/max/work/e_learning_resource/trunk/log/access.log combined

</VirtualHost>

I figured this would allow me to can get on from another computer with max.trunk.production.charanga, there is however another step i am sure, which i can't determine. Right now, basically type my ip in to the address bar in opera on another computer, i begin to see the default apache server (with "It really works!Inch etc), however i can't reach my rails apache server. Please correct me if i am while using wrong terminology here...

thanks max

The pc trying to gain access to it must understand how to resolve the DNS entry max.trunk.production.charanga towards the correct Ip 192.168.1.42 (or whatever may be the Ip of the server). It can't figure this out without having to be told.

You are able to usually tell it these details by editing /etc/hosts and pointing that address towards the correct Ip. Simply getting Apache recognize the title does not let your other machines to understand how to can get on.

Alternatively, should you operate a local DNS service, you can include an entry there.

Editing of the hosts file is really a fast and simple solution.

Adding the road

192.168.1.1    trunk.production.charanga max.trunk.production.charanga

into it will inform your pc to make use of that ip for your domain. Based on your browser (Opera does caching internaly) or perhaps your OS (home windows caches too), you may want to restart your browser or flush your dns cache.

To learn more regarding your hosts file (including how to locate it on different OSes), check this wikipedia link.

It just simple,

I usually do such as this. example . 200.100.10.1:3000/ . I access my pal web application in another city.

or

<VirtualHost>
DocumentRoot /htdoc/trunk/ <-- this is my app path. I move my rails app into xampp for exp
ServerName 200.100.10.1:3000
ServerAlias 200.100.10.1
</VirtualHost>

and so i just type 200.100.10.1 to gain access to their application if i am not wrong. I really hope it work

I discovered the solution: the answer would be to result in the needed server the default server for my ip. Used to do this by altering the top config apply for the needed site (/etc/apache2/sites-available/001-trunk within this situation)

out of this

<VirtualHost *:80>
  ServerName trunk.charanga
  ServerAlias max.trunk.charanga

  DocumentRoot /home/max/work/e_learning_resource/trunk/public
  ......etc

to

NameVirtualHost 192.168.0.234:80
<VirtualHost 192.168.0.234:80>
  ServerName trunk.charanga
  ServerAlias max.trunk.charanga

  DocumentRoot /home/max/work/e_learning_resource/trunk/public
  .....etc

where 192.168..234 is my network ip.

Now, when another person makes its way into that ip inside a browser they obtain the site i would like these to get rather than the apache default site.

Thanks everybody for the advice!

enter in the ip and port like so:

127...:80/rails

this can only work if permissions are going to read/write.