|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello every one,
I am unable to get one ip hosting 2 different pages on 2 different ports 1.3.44.6:90 = /home/user1 1.3.44.6.95 = /home/user2 any idea how to get this to work ? please help thank you |
|
#2
|
|||
|
|||
|
Why use the outdated implementation when you can do it with Virtual Hosts?
Start here -> http://httpd.apache.org/docs/vhosts/name-based.html |
|
#3
|
|||
|
|||
|
hmm
ok, sorry, i didnt say off had, but this matchine has no domains at all
its just a regular ADSL line, so, i just need what i said in my first post. I dont know if i can do this with the VirturalHost directives or not i just need http://1.2.3.4:90 to goto /home/web1 and http://1.2.3.4:95 to goto /home/web2 see ? this ip dosent have a domain to it. so im not sure what to put int he SERVERNAME directive. I duno, im still not sure how to do this. I have been playing around with the VirturalHost directive for days.. any more help would be great ross |
|
#4
|
|||
|
|||
|
>> its just a regular ADSL line
Why not get yourself a domain for only $8.95 USD at htp://www.godaddy.com ? Whether you have static IP or not doesn't make any difference. With dynamic IP, of course, it's even encouraged. >> I dont know if i can do this with the VirturalHost directives or not Yes. <VirtualHost _default_:90> DocumentRoot "/home/user1" </VirtualHost> <VirtualHost _default_:95> DocumentRoot "/home/user2" </VirtualHost> >> so im not sure what to put int he SERVERNAME directive Nothing and you can just comment out that line. Assuming your ifconfig or /etc/hosts is configured properly, upon startup of Apache, it will determine the IP automatically. Say you don't have static IP, you don't even need to update your IP to the ServerName line everytime it changes. Now what you also need to define on top of the <VirtualHost> blocks is Listen directive like so: (define globally) Listen 90 Listen 95 and that's all. Keep in mind, you can't pick any low port you wish. Port 90 and 95 are reserved for other services. When using a port other than the http standard port, you should pick one that's above 1023. |
|
#5
|
||||
|
||||
|
offtopic
2freebsd: hey thx for the link!! 70c/month, even I can afford it
![]()
__________________
And you know I mean that. |
|
#6
|
|||
|
|||
|
hey, thanks for the great replys =)
im'a go try that stuff now.. and order a domain or 10.. ![]() thanks again!! ross ![]() |
|
#7
|
||||
|
||||
|
another offtopic
they (godaddy) dont support ftp redireting, do they? 'coz I really need it (currently I am using no-ip.com) along with http redirecting....
|
|
#8
|
|||
|
|||
|
>> they (godaddy) dont support ftp redireting
godaddy.com is the Registrar and therefore is not responsible for that. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > One IP, Multi Ports = Not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|