![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
__________________
"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 |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2005
Posts: 17
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#4 |
|
Professional Programmer
|
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;} |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|