![]() |
Apache2 Redirect
1 Attachment(s)
Hey all
any one know how to redirect to another PC on a local network to show up a site. I use Ubuntu Server and its alittle different to how I did it in the past on a Tiny Sofa system Old code as follows Code:
#Any one done this before on the Unbuntu system ? TT |
To find out if mod_alias is compiled as an apache module you can use:
Code:
httpd -l|grep alias |
Should not be different' per OS apache is apache
Looks like you need to change the line #Redirect permanent /windows http://<192.168.10.6:80 remove the comment and the "<". |
Quote:
That command doesn't seem to be working on the command line Reason why I asked about that redirect is my apache2 has diffferent folders for enabling sites just like int he image, where do I put the code, under apache2.conf as Normal ? TT |
That's just the debian way of doing ghosts. They are just included from the main conf. Makes managing multiple site configs easier. As for your redirect if the client computers can access the new server directly then you just want to do a 301 rediret. If the client computers can not access the new server directly then you need to do a reverse proxy.
|
Put the redirect in your virtualhost containment and you should be good to go.
|
Doesn't seem to be working
I've put the Redirect permanent code with in the apache2.conf it self, restarted apache2, NO errors. Code:
<IfModule mod_alias.c> I've opned up the ports on my router added the IP and port and opened up the windows port for 8080 hope all that makes sense TT |
Quote:
|
I did get it going one way
had to install IIS and shut down my Apache2Triad on my windows box, change the IIS port and port to firewalls Not really the way I wanted it, I wanted to be able to use redirect so I dont have to add the port number on the end of the link each time I get my mates to view our cam. TT ( karl ) |
I see. To get rid of the port # you could use a frame page.
Code:
<HTML> |
| All times are GMT -5. The time now is 03:41 AM. |