Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 3rd, 2001, 09:15 AM
Ross Monge Ross Monge is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Norway
Posts: 14 Ross Monge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Ross Monge
Exclamation One IP, Multi Ports = Not working

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

Reply With Quote
  #2  
Old November 3rd, 2001, 10:09 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Why use the outdated implementation when you can do it with Virtual Hosts?

Start here -> http://httpd.apache.org/docs/vhosts/name-based.html

Reply With Quote
  #3  
Old November 3rd, 2001, 10:17 AM
Ross Monge Ross Monge is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Norway
Posts: 14 Ross Monge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Ross Monge
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

Reply With Quote
  #4  
Old November 3rd, 2001, 01:02 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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.

Reply With Quote
  #5  
Old November 3rd, 2001, 01:59 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
offtopic

2freebsd: hey thx for the link!! 70c/month, even I can afford it
__________________
And you know I mean that.

Reply With Quote
  #6  
Old November 3rd, 2001, 03:10 PM
Ross Monge Ross Monge is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Norway
Posts: 14 Ross Monge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Ross Monge
hey, thanks for the great replys =)
im'a go try that stuff now.. and order a domain or 10..

thanks again!!

ross

Reply With Quote
  #7  
Old November 3rd, 2001, 03:13 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
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....

Reply With Quote
  #8  
Old November 5th, 2001, 12:42 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> they (godaddy) dont support ftp redireting

godaddy.com is the Registrar and therefore is not responsible for that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > One IP, Multi Ports = Not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway