|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Woe is me. Am I the only one who ever has porblems?
ahh. Ok, here is yet another mind boggling dilema, well not for you I'm sure, but foe me it is.
In my previous post we decided, and was confirmed by my ISP that port 80 was blocked. So i moved my server to port 8080. Now people outside can get to it. Bu I am lazy and forgetful, and I find it a pain to have to type 127.0.0.1:8080 to get to it. Is there a way I can get it to listen on port 80 and 8080 so my laziness can continue? After reading the apache documentation it says it can eb done with virtual hosts, but everytime I try virtual hosts I get 404 errors for it. Maybe you can assist me. Thanks in advance |
|
#2
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
You should just be able to add an additional Listen line in your httpd.conf file:
Listen 127.0.0.1:80 You should also have a Listen line for your external IP: Listen 24.23.12.2:8080 |
|
#3
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
Matt is correct. But you do not even have to have the ip listed. You can just do a Listen 8080. Apache will answer no matter what IP it came in on as long as it knows to linten to that port.
|
|
#4
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
I have 2 listens going. One on 80, one on 8080, except the one on 80 never gets through.
|
|
#5
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
Have you stopped and restarted the apache server since adding the 80 listen?
|
|
#6
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
80 Is blocked by his ISP.
|
|
#7
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
It shouldn't be blocked on the loop back address though....
|
|
#8
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
I worked with him for a while on this 80 was blocked so he changed his server to 8080 but he just wanted to know how to make it listen on both ports so he did not have to type :8080 when he was local. I dont believe he was having trouble on loopback
|
|
#9
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
ahhh! All these big technical words!!
Now, to anonomys, Yes I have restarted apache, numerous times actully. I switched it from 80 to 8080. I have 2 virtual hosts set up, tell m eif you see a problem Listen 80 Listen 8080 ..... <VirtualHost *:8080> Port 8080 ServerName "..." DocumentRoot c:/mywebsitestuff </VirtualHost> <VirtualHost *> Port 80 ServerName "..." DocumentRoot c:/mywebsitestuff/ </VirtualHost> Now apache not throwing errs I assumed this would work. I have it set to listen on 80 and 8080. 8080 works, but 80 doesn't. Any enlightenment? And just out of curiosity, what is a loopback? |
|
#10
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
What version of apache? 2.0 maybe?
127.0.0.1 is considered loopback this just means it loops back to itself. just //localhost. |
|
#11
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
I have 1.3.27 I believe it is, its the newest one for windows before 2.0
I didn't like the way 2.0 worked with PHP, and it kept crashing my computer, so I reverted. 1.3.27(i think) always worked for me. |
|
#12
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
heh, whoops, I wan't really restarting the server
*feels embarassed* darn the -n thing!! |
|
#13
|
|||
|
|||
|
RE: Woe is me. Am I the only one who ever has porblems?
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Woe is me. Am I the only one who ever has porblems? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|