Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 19th, 2005, 9:43 AM   #1
bobfox
Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0 bobfox is on a distinguished road
Apache Virtual Hosts

hi again.

I am running apache on fedora core 3. i would like to know how to create a virtual server.

currently it is:

http://myserver.com

i want the above to work, as well as:

http://site2.myserver.com

etc.

any ideas?
bobfox is offline   Reply With Quote
Old Aug 19th, 2005, 9:45 AM   #2
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
http://httpd.apache.org/docs/2.0/vhosts/name-based.html
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell

http://web.bryant.edu/~srk2
skuinders is offline   Reply With Quote
Old Aug 19th, 2005, 10:40 AM   #3
bobfox
Newbie
 
Join Date: Aug 2005
Posts: 17
Rep Power: 0 bobfox is on a distinguished road
I looked at that howto... but I'm getting lost somewhere... I have made these changes to httpd.conf and restarted httpd afterwards, but still no go.

NameVirtualHost 1.20.30.40:88
                                                                                
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                
<VirtualHost 1.20.30.40:88>
ServerName site1.mysite.net
DocumentRoot /var/www/html/site1
ServerAdmin me@gmail.com
</VirtualHost>

any ideas?
bobfox is offline   Reply With Quote
Old Aug 30th, 2005, 8:54 PM   #4
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
With that configuration, your local subnet (maybe? lol) has to be accessed through 1.20.30.40 (which is incorrect, I'm sure). It's probably 127.0.01. Also, that subnet can only be accessed through port :88. To get to that site, I believe you'd have to type in http://site1.mysite.net:88/
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Aug 30th, 2005, 11:05 PM   #5
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,453
Rep Power: 7 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Changing port 88 to 80 would probably work out for you.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:59 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC