LinHES Forums http://forum.linhes.org/ |
|
Web Issues http://forum.linhes.org/viewtopic.php?f=11&t=6349 |
Page 1 of 1 |
Author: | fireyice01 [ Sat Oct 08, 2005 10:05 pm ] |
Post subject: | Web Issues |
Okay. So here's my deal. I have a computer that's running like redhat 8. I've got Apache2, PHP, MySQL, phpmyadmin, squirrelmail, qmail, etc installed on it... basically it's my web/mail/ftp/everything else server.I don't have a TV card in this computer. I have another system that I've got running KnoppMyth. took me all week to get everything working to this point (remote doesn't work, but I think I know what I need to do when I get home in the morning to make it work) I have a linksys wireless router. Currently my KnoppMyth system is connected via wireless network. That may change soon. The problem I'm having is that I can't route port 80's traffic to my myth box AND my web box. So, basically, what I need to do is either a) set up myth backend on my server (not really desirable, it's been stable and running the way it is for almost 3 years now with 0 modifications) b) set up the web interfact to run on my server and update the backend on the myth computer. c) set up apache so that when I go to certian directories, it automatically forwards off to the other computer. I don't know what I need to do. Basically I want to be able to run my website, AND have access to my MythTV web frontend so I can set timers and stuff whenver, wherever. I was thinking about setting up the mythweb directories as a NFS share and mount them from my web server, but I don't know enough about the programming in mythweb to know if that would even work. Also, can I run myth backend on a computer without a TV card? I'm sure I'll figure all of this out given a chance, but if someone already knows, please share. Thanks. ~Jon |
Author: | tjc [ Sat Oct 08, 2005 10:56 pm ] |
Post subject: | |
Did you think about using a different port on the outer side and forwarding it to port 80 on the MythTV box? Set the linksys to take anything sent to port external:8080 (or whatever port you want) and forward it to myth:80, just like you have it forward external:80 to webserver:80. This is the usual way of doing this type of thing with a single address being NATed to multiple machines after all. |
Author: | cesman [ Sat Oct 08, 2005 11:01 pm ] |
Post subject: | |
Ahhh... You can have Apache run on a different port. |
Author: | Mephi [ Sun Oct 09, 2005 4:09 am ] |
Post subject: | |
Yes, I did this a while ago. My old router wouldn't route an external port to a different internal port (i.e. external 8080 to port 80 on the myth box) To do this I edited the apache config file: Code: nano /etc/apache/httpd.conf Then searched for the port line (ctrl-w then type "Port 80") Then changed that to whatever port I was forwarding in (i.e. 8080). Then I restarted Apache Code: /etc/init.d/apache restart
Then I reconfigured my router to forward the port. Mephi |
Author: | fireyice01 [ Sun Oct 09, 2005 8:53 am ] |
Post subject: | |
my router won't let me redirect to different ports... I know I can run apache on a diferent port, but I'm kind of fond of just typing my domain and having it all work. I may actually end up setting up my web server with tv card and an extra hard drive and make it the master backend, then I'll create a knoppmyth subdomain in apache and everything will work out good. Won't know until wednesday for sure though. Also not sure if I want to pull the card outta this working box (well, the remote doesn't yet work, but everything else does) or if I want to try and see if I can't get the generic card that I got off tiger direct to work (it's a bt878 chip so it could work, but it's a really generic card, so if it does work, at $25 I'll have to get couple more ![]() But at least I know what I can do. You can't run a backend without a tv card, can you? |
Author: | tjc [ Sun Oct 09, 2005 10:05 am ] |
Post subject: | |
fireyice01 wrote: my router won't let me redirect to different ports...
Huhn? What Linksys model do you have? Even my cheap bottom of the line BEFSR41 will do this. Their terminology is a bit odd but it's in there... |
Author: | Girkers [ Sun Oct 09, 2005 3:36 pm ] |
Post subject: | |
Think outside the box people, or in this case, inside. All you need to do is create a webpage on your main server with a frame set and have one of the frames point to you mythbox, duh. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<HTML> <HEAD> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <TITLE>MythWeb</TITLE> </HEAD> <frameset rows="6,*"> <frame name="NoName" src="#" noresize> <frame name="NoName" src="http://192.168.0.100/mythweb" noresize> <noframes> <BODY BGCOLOR="#FFFFFF"> <H1></H1> </BODY> </noframes> </frameset> </HTML> |
Author: | fireyice01 [ Sun Oct 09, 2005 9:47 pm ] |
Post subject: | |
tjc wrote: fireyice01 wrote: my router won't let me redirect to different ports... Huhn? What Linksys model do you have? Even my cheap bottom of the line BEFSR41 will do this. Their terminology is a bit odd but it's in there... It's an older 802.11b router. I'll post the model number later... it seems to me that it will forward a range of ports, but not from one port to another. Girkers wrote: Think outside the box people, or in this case, inside.
All you need to do is create a webpage on your main server with a frame set and have one of the frames point to you mythbox, duh. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <HTML> <HEAD> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <TITLE>MythWeb</TITLE> </HEAD> <frameset rows="6,*"> <frame name="NoName" src="#" noresize> <frame name="NoName" src="http://192.168.0.100/mythweb" noresize> <noframes> <BODY BGCOLOR="#FFFFFF"> <H1></H1> </BODY> </noframes> </frameset> </HTML> I don't see that working. see, I have a domain, I host it off my server, which is redhat8. I just built a myth box. it's another computer. The idea you've presented would work, if I were only accessing my computer from a local network, but I connect remotely quite frequently. A solution that I *think* might work though is using NFS. I think the BEST overall solution to attain ALL my needs is to put the TV card in my server, set up a master backend and put an array of drives in there, mount them as an NFS share, and then run mythweb as a subdomain in conjunction with the rest of my site. Then I can run slave backends with NFS mounts in the other rooms, which will allow me to centralize my storage, and control everything from a central point. I'm also considoring doing a cluster setup. Does anybody know how well xvid supports SMP? I have 4 computers all with 2.4+ ghz processors that I want to network together and cluster, but I'm not exactly sure how, as it appears mosix is not written for the latest kernel, and I don't know how well it would patch in... anyone? |
Author: | mad_paddler [ Mon Oct 10, 2005 3:45 am ] |
Post subject: | |
Have you tried updating the firmware on your router? They may have added the capability since you bought it. |
Author: | Girkers [ Tue Oct 11, 2005 1:48 am ] |
Post subject: | |
I found a way around it. I have a linux webserver running apache and what you need to setup is a reverse HTTP proxy. I am using an SME server so I don't know how to do it by hand, but how my system works is that through my server software I create a virtual directory "/mythtv/" and point that to my mythtv box. So when I go to mydomain.com/mythtv/ instead of going to my normal webserver it is passed onto my mythbox. thank you thank you very much, just through money ![]() |
Author: | fireyice01 [ Tue Feb 07, 2006 2:01 am ] |
Post subject: | |
so, what I ended up doing was tossing a wintv-go plus card in my web/ftp/mail server, added a pair of hard drives, installed fedora core 4, installed all my servers and then installed mythtv on it, set this as the masterbackend, and have a secondary slave running in the living room. Now I can connect to my web server on port 80 to get to my mythweb and my regular website (via. virtual domains) This seemed to me to be the most logical solution. |
Author: | brianwc [ Tue Jun 20, 2006 2:37 am ] |
Post subject: | Forwarding proxy is a good solution here |
I had this same issue and solved it by just telling apache to forward requests to the mythbox. Situation: ____________________ [You in a remote location.] ___|___ [Internet] ___|_______ [Your Router @real.ip.add.ress] ___|___________________|___________ [Your apache webserver]__[Your Mythbox] [@192.168.0.2]________[@192.168.0.3] Your webserver resolves to yourdomain.com, you' d like to access the Mythbox remotely, and your router currently sends ALL port 80 traffic to the apache webserver at 192.168.0.2. Most home routers are not smart enough to send some port 80 traffic to the apache webserver and some port 80 traffic to your mythbox. It all has to be forwarded to the same place. (No problem. Proxies to the rescue!) In my case, I registered a domain for my mythbox. You could use a subdomain off yourdomain.com instead. Just make sure the usual DNS stuff is correct for the mythbox and go to the next step. Let's call the mythbox domain: mythdomain.com. Then on the apache webserver @192.168.0.2, I added this virtual host entry: Code: <VirtualHost *:80>
ServerName www.mythdomain.com ProxyPass / http://192.168.0.3/ ProxyPassReverse / http://192.168.0.3/ </VirtualHost> <VirtualHost *:80> ServerName mythdomain.com ProxyPass / http://192.168.0.3/ ProxyPassReverse / http://192.168.0.3/ </VirtualHost> Notice that there is a "/" after the ProxyPass and ProxyPassReverse entries. Don't leave those slashes out. Restart apache and you should be in business. (Hey! That was easy!) |
Author: | khrusher [ Tue Jun 27, 2006 8:43 pm ] |
Post subject: | |
I would love to do this...seems the apache config on my box doesnt have the proxy modules. can anyone help me get this added to my apache config. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |