Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

virtual hosts... need help please

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Linux-powered handhelds, Ipods, mini-TIVO's, etc.  
Author Message
admin39

External


Since: Sep 09, 2004
Posts: 5



(Msg. 1) Posted: Thu Sep 09, 2004 1:51 pm
Post subject: virtual hosts... need help please
Archived from groups: alt>apache>configuration (more info?)

Hi NG.

I'm having trouble configuring Apache to run with more than 1 host. I've
read the config describtion ofcause but when I try to do what it says I
can't seem to get it to work.

If anyone could post the changes they have made to their httpd.conf to
enable this feature along with a little explanation as to the roots etc. it
would be really great.

Thanks in advance...

/Aidal

 >> Stay informed about: virtual hosts... need help please 
Back to top
Login to vote
user2676

External


Since: Feb 11, 2004
Posts: 30



(Msg. 2) Posted: Thu Sep 09, 2004 4:59 pm
Post subject: Re: virtual hosts... need help please [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 9 Sep 2004 10:51:24 +0200, "Aidal" <admin RemoveThis @yellowonline.dk>
wrote:

 >Hi NG.
 >
 >I'm having trouble configuring Apache to run with more than 1 host. I've
 >read the config describtion ofcause but when I try to do what it says I
 >can't seem to get it to work.
 >
 >If anyone could post the changes they have made to their httpd.conf to
 >enable this feature along with a little explanation as to the roots etc. it
 >would be really great.
 >
 >Thanks in advance...
 >
 >/Aidal
 >

here you go: the relevant part of my httpd.conf:
================================================
# httpd.conf
# Apache configuration for site

ServerRoot "/etc/httpd"

ExtendedStatus On

<Location /status>
order deny,allow
allow from echo.mysite.com
deny from all
SetHandler server-status
</Location>

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

Listen 192.168.0.1:80
Listen 10.0.0.150:80

LoadModule php4_module /usr/local/apache2/lib/apache/libphp4.so

UseCanonicalName Off

User webuser
Group webgroup

ServerName <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a>

VirtualDocumentRoot /var/www/%0/htdocs

<Directory />
AllowOverride None
Options None
Order Deny,Allow
Deny from all
</Directory>

<Directory /var/www >
Options FollowSymLinks
</Directory>

# here it is: you can now make dir's like
# <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a>
# family.mysite.com
# job.mysite.com
# etc etc etc
# for each site, the *.mysite.*/htdocs is the root dir

<Directory /var/www/*.mysite.*/htdocs >
Order Deny,Allow
Allow from All
</Directory>

<Directory /var/www/php.mysite.com/htdocs >
# in this dir, the viewforum.php file is served, instead of
index.html:
DirectoryIndex viewforum.php?f=2?start=0
Order Deny,Allow
Allow from All
</Directory>

<Directory /var/www/fam.mysite.com/htdocs >
DirectoryIndex viewforum.php?f=1?start=0
Order Deny,Allow
Allow from All
</Directory>


<Directory /var/www/*.mysite.*/htdocs/docs >
Order Deny,Allow
Allow from 192.168.0.3
</Directory>

<Directory /var/www/manual/vhosts >
Order Deny,Allow
Allow from 192.168.0.3
</Directory>

<Directory /var/www/*.mysite.*/cgi-bin >
Order Deny,Allow
Deny from All
Allow from 192.168.0.3
</Directory>

<Directory /var/www/*.mysite.*/htdocs/images >

IndexOptions FoldersFirst FancyIndexing
AddDescription "Picture, used on the <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a> site" *.jpg
*.gif
IndexIgnore ..
AddIcon (DIR,/icons/dir.gif) ^^DIRECTORY^^
DefaultIcon /icons/burst.gif
Order Deny,Allow
Allow from All
</Directory>

UserDir disabled root

CustomLog /var/log/httpd/access_log common

ServerAdmin root@localhost
Transferlog logs/access_log
Errorlog logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

DirectoryIndex index.html index.htm index.php

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

TypesConfig conf/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off

ServerTokens min

ServerSignature Off

Alias /icons/ "/var/www/icons/"
Alias /error/ "/var/www/error/"
ScriptAlias /cgi-bin/ /var/www/cgi-bin/

<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

AliasMatch ^/manual(?:/(?:nl|en))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all

<Files *.html>
SetHandler type-map
</Files>

SetEnvIf Request_URI ^/manual/en/ prefer-language=en
RedirectMatch 301 ^/manual(?:/(nl|en)){2,}(/.*)?$ /manual/$1$2
</Directory>

IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should
ignore
# and not include in the listing. Shell-style wildcarding is
permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

DefaultLanguage en

AddLanguage en .en
AddLanguage nl .nl

LanguagePriority en nl

ForceLanguagePriority Prefer Fallback

AddDefaultCharset ISO-8859-1

AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4


AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client,
mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset UTF-8 .utf8

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php

#AddHandler send-as-is asis

AddHandler type-map var


ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
ErrorDocument 410 /error/HTTP_GONE.html.var
ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var



BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0


BrowserMatch "Microsoft Data Access Internet Publishing Provider"
redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully


<IfModule mod_ssl.c>
<IfDefine SSL>
Include /etc/httpd/conf/ssl.conf
</IfDefine>
</IfModule>

===========================================================
have fun
Erik<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: virtual hosts... need help please 
Back to top
Login to vote
admin39

External


Since: Sep 09, 2004
Posts: 5



(Msg. 3) Posted: Thu Sep 09, 2004 6:31 pm
Post subject: Re: virtual hosts... need help please [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Wow that was some reply!
Thanks for all the examples though it looks a little confusing right now - I
will probably get a better idea when I study it more closely.

Thanks Erik Smile

"Erik" <et57 at correos calor dot com> wrote in message
news:dug0k01juemc67guj1cgajgbr2v57ahc1d@4ax.com...
 > On Thu, 9 Sep 2004 10:51:24 +0200, "Aidal" <admin.TakeThisOut@yellowonline.dk>
 > wrote:
 >
  > >Hi NG.
  > >
  > >I'm having trouble configuring Apache to run with more than 1 host. I've
  > >read the config describtion ofcause but when I try to do what it says I
  > >can't seem to get it to work.
  > >
  > >If anyone could post the changes they have made to their httpd.conf to
  > >enable this feature along with a little explanation as to the roots etc.
it
  > >would be really great.
  > >
  > >Thanks in advance...
  > >
  > >/Aidal
  > >
 >
 > here you go: the relevant part of my httpd.conf:
 > ================================================
 > # httpd.conf
 > # Apache configuration for site
 >
 > ServerRoot "/etc/httpd"
 >
 > ExtendedStatus On
 >
 > <Location /status>
 > order deny,allow
 > allow from echo.mysite.com
 > deny from all
 > SetHandler server-status
 > </Location>
 >
 > Timeout 300
 >
 > KeepAlive On
 >
 > MaxKeepAliveRequests 100
 >
 > KeepAliveTimeout 15
 >
 > Listen 192.168.0.1:80
 > Listen 10.0.0.150:80
 >
 > LoadModule php4_module /usr/local/apache2/lib/apache/libphp4.so
 >
 > UseCanonicalName Off
 >
 > User webuser
 > Group webgroup
 >
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.mysite.com</font" target="_blank">www.mysite.com</font</a>>
 >
 > VirtualDocumentRoot /var/www/%0/htdocs
 >
 > <Directory />
 > AllowOverride None
 > Options None
 > Order Deny,Allow
 > Deny from all
 > </Directory>
 >
 > <Directory /var/www >
 > Options FollowSymLinks
 > </Directory>
 >
 > # here it is: you can now make dir's like
<font color=purple> > # <a style='text-decoration: underline;' href="http://www.mysite.com</font" target="_blank">www.mysite.com</font</a>>
 > # family.mysite.com
 > # job.mysite.com
 > # etc etc etc
 > # for each site, the *.mysite.*/htdocs is the root dir
 >
 > <Directory /var/www/*.mysite.*/htdocs >
 > Order Deny,Allow
 > Allow from All
 > </Directory>
 >
 > <Directory /var/www/php.mysite.com/htdocs >
 > # in this dir, the viewforum.php file is served, instead of
 > index.html:
 > DirectoryIndex viewforum.php?f=2?start=0
 > Order Deny,Allow
 > Allow from All
 > </Directory>
 >
 > <Directory /var/www/fam.mysite.com/htdocs >
 > DirectoryIndex viewforum.php?f=1?start=0
 > Order Deny,Allow
 > Allow from All
 > </Directory>
 >
 >
 > <Directory /var/www/*.mysite.*/htdocs/docs >
 > Order Deny,Allow
 > Allow from 192.168.0.3
 > </Directory>
 >
 > <Directory /var/www/manual/vhosts >
 > Order Deny,Allow
 > Allow from 192.168.0.3
 > </Directory>
 >
 > <Directory /var/www/*.mysite.*/cgi-bin >
 > Order Deny,Allow
 > Deny from All
 > Allow from 192.168.0.3
 > </Directory>
 >
 > <Directory /var/www/*.mysite.*/htdocs/images >
 >
 > IndexOptions FoldersFirst FancyIndexing
 > AddDescription "Picture, used on the <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a> site" *.jpg
 > *.gif
 > IndexIgnore ..
 > AddIcon (DIR,/icons/dir.gif) ^^DIRECTORY^^
 > DefaultIcon /icons/burst.gif
 > Order Deny,Allow
 > Allow from All
 > </Directory>
 >
 > UserDir disabled root
 >
 > CustomLog /var/log/httpd/access_log common
 >
 > ServerAdmin root@localhost
 > Transferlog logs/access_log
 > Errorlog logs/error_log
 >
 > LogLevel warn
 >
 > LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
 > \"%{User-Agent}i\"" combined
 > LogFormat "%h %l %u %t \"%r\" %>s %b" common
 > LogFormat "%{Referer}i -> %U" referer
 > LogFormat "%{User-agent}i" agent
 >
 > DirectoryIndex index.html index.htm index.php
 >
 > AccessFileName .htaccess
 >
 > <Files ~ "^\.ht">
 > Order allow,deny
 > Deny from all
 > </Files>
 >
 > TypesConfig conf/mime.types
 >
 > DefaultType text/plain
 >
 > <IfModule mod_mime_magic.c>
 > MIMEMagicFile conf/magic
 > </IfModule>
 >
 > HostnameLookups Off
 >
 > ServerTokens min
 >
 > ServerSignature Off
 >
 > Alias /icons/ "/var/www/icons/"
 > Alias /error/ "/var/www/error/"
 > ScriptAlias /cgi-bin/ /var/www/cgi-bin/
 >
 > <Directory "/var/www/icons">
 > Options Indexes MultiViews
 > AllowOverride None
 > Order allow,deny
 > Allow from all
 > </Directory>
 >
 > AliasMatch ^/manual(?:/(?:nl|en))?(/.*)?$ "/var/www/manual$1"
 >
 > <Directory "/var/www/manual">
 > Options Indexes
 > AllowOverride None
 > Order allow,deny
 > Allow from all
 >
 > <Files *.html>
 > SetHandler type-map
 > </Files>
 >
 > SetEnvIf Request_URI ^/manual/en/ prefer-language=en
 > RedirectMatch 301 ^/manual(?:/(nl|en)){2,}(/.*)?$ /manual/$1$2
 > </Directory>
 >
 > IndexOptions FancyIndexing VersionSort
 >
 > AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
 >
 > AddIconByType (TXT,/icons/text.gif) text/*
 > AddIconByType (IMG,/icons/image2.gif) image/*
 > AddIconByType (SND,/icons/sound2.gif) audio/*
 > AddIconByType (VID,/icons/movie.gif) video/*
 >
 > AddIcon /icons/binary.gif .bin .exe
 > AddIcon /icons/binhex.gif .hqx
 > AddIcon /icons/tar.gif .tar
 > AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
 > AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
 > AddIcon /icons/a.gif .ps .ai .eps
 > AddIcon /icons/layout.gif .html .shtml .htm .pdf
 > AddIcon /icons/text.gif .txt
 > AddIcon /icons/c.gif .c
 > AddIcon /icons/p.gif .pl .py
 > AddIcon /icons/f.gif .for
 > AddIcon /icons/dvi.gif .dvi
 > AddIcon /icons/uuencoded.gif .uu
 > AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
 > AddIcon /icons/tex.gif .tex
 > AddIcon /icons/bomb.gif core
 >
 > AddIcon /icons/back.gif ..
 > AddIcon /icons/hand.right.gif README
 > AddIcon /icons/folder.gif ^^DIRECTORY^^
 > AddIcon /icons/blank.gif ^^BLANKICON^^
 >
 > DefaultIcon /icons/unknown.gif
 >
 > ReadmeName README.html
 > HeaderName HEADER.html
 >
 > #
 > # IndexIgnore is a set of filenames which directory indexing should
 > ignore
 > # and not include in the listing. Shell-style wildcarding is
 > permitted.
 > #
 > IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
 >
 > DefaultLanguage en
 >
 > AddLanguage en .en
 > AddLanguage nl .nl
 >
 > LanguagePriority en nl
 >
 > ForceLanguagePriority Prefer Fallback
 >
 > AddDefaultCharset ISO-8859-1
 >
 > AddCharset ISO-8859-1 .iso8859-1 .latin1
 > AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
 > AddCharset ISO-8859-3 .iso8859-3 .latin3
 > AddCharset ISO-8859-4 .iso8859-4 .latin4
 >
 >
 > AddCharset Big5 .Big5 .big5
 > # For russian, more than one charset is used (depends on client,
 > mostly):
 > AddCharset WINDOWS-1251 .cp-1251 .win-1251
 > AddCharset CP866 .cp866
 > AddCharset UTF-8 .utf8
 >
 > AddType application/x-compress .Z
 > AddType application/x-gzip .gz .tgz
 > AddType application/x-httpd-php .php
 >
 > #AddHandler send-as-is asis
 >
 > AddHandler type-map var
 >
 >
 > ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
 > ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
 > ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
 > ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
 > ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
 > ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
 > ErrorDocument 410 /error/HTTP_GONE.html.var
 > ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
 > ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
 > ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
 > ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
 > ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
 > ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
 > ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
 > ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
 > ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 > ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
 >
 >
 >
 > BrowserMatch "Mozilla/2" nokeepalive
 > BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
 > force-response-1.0
 > BrowserMatch "RealPlayer 4\.0" force-response-1.0
 > BrowserMatch "Java/1\.0" force-response-1.0
 > BrowserMatch "JDK/1\.0" force-response-1.0
 >
 >
 > BrowserMatch "Microsoft Data Access Internet Publishing Provider"
 > redirect-carefully
 > BrowserMatch "^WebDrive" redirect-carefully
 > BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
 > BrowserMatch "^gnome-vfs" redirect-carefully
 >
 >
 > <IfModule mod_ssl.c>
 > <IfDefine SSL>
 > Include /etc/httpd/conf/ssl.conf
 > </IfDefine>
 > </IfModule>
 >
 > ===========================================================
 > have fun
 > Erik
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual hosts... need help please 
Back to top
Login to vote
dinges_danges_

External


Since: Aug 03, 2004
Posts: 88



(Msg. 4) Posted: Fri Sep 10, 2004 7:35 am
Post subject: Re: virtual hosts... need help please [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Aidal said the following on 09/09/2004 10:51:

 > I'm having trouble configuring Apache to run with more than 1 host. I've
 > read the config describtion ofcause but when I try to do what it says I
 > can't seem to get it to work.
 >
 > If anyone could post the changes they have made to their httpd.conf to
 > enable this feature along with a little explanation as to the roots etc. it
 > would be really great.

Maybe you can post what you have changed and we can try to explain why
it's not working, wouldn't that let you learn more?

--
Regards
Harrie<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual hosts... need help please 
Back to top
Login to vote
user2676

External


Since: Feb 11, 2004
Posts: 30



(Msg. 5) Posted: Sat Sep 11, 2004 2:53 pm
Post subject: Re: virtual hosts... need help please [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 9 Sep 2004 15:31:38 +0200, "Aidal" <admin.TakeThisOut@yellowonline.dk>
wrote:

 >Wow that was some reply!
 >Thanks for all the examples though it looks a little confusing right now - I
 >will probably get a better idea when I study it more closely.
 >
 >Thanks Erik Smile
 >

Well, pay special attention to the VirtualDocumentRoot line and the
<Directory> blocks.
Also the FollowSYmLinks is handy: that way, you can have a symlink
w3.mysite.com point to <a style='text-decoration: underline;' href="http://www.mysite.com" target="_blank">www.mysite.com</a> and you don't need copies of all
html's...

Each "site" should be put in its own directory, (eg.
/var/www/www.mysite.com/htdocs and /var/www/www.hisplace.com/htdocs)

The idea is, to deny access to directories "higher" than the
/var/www/www.mystite.com directory.
And certainly no access to the / directory !!!

Make sure, that the local name server points all URL's to the IP of
the server machine.

Most of the other stuff in my httpd.conf is not relevant to your
question, but may be usefull.
A lot of the stuff is standard, directly from the default httpd.conf.

have fun

Erik<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual hosts... need help please 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Virtual Hosts - Hi everyone, I am new to apache, so if my question is answered in the groups faq, or on the apache web site, feel free to tell me to f**k off and read there. However I have looked through the manual, and cant find any reference to the issues im having...

Virtual hosts and SSL? - Hello I'm trying to setup this apache 1.3 server for virtual hosts, with ssl. I've got the normal port 80 working, but the SSL is a bit of a mess. If I have the SSL pages in the real part of the server, ie, https://www.example.com/fred/index.htm then....

Virtual Hosts? - I'm wanting to use one IP address to host multiple domains, ie web hosting. I assume that "virtual hosts" are the thin I need to focus on here and is this basically a similar concept to Host Headers in IIS 5.0? I'm running Windows 2000 with Apa...

Testing virtual hosts. - I have a ADSL connection, with a number of domains all mapped to the fixed IP address of my ADSL connection. Entries on port 80 are then sent to a machine I have dedicated as just a webserver (192.168.1.10), via the router/firewall which performs NAT. Th...

mod_rewrite and virtual hosts - I am in the process of replacing a Windows-based reverse proxy with a Linux/Apache reverse proxy. Not being an expert in either Linux or Apache, I am learning quite a bit along the way. What I would like to do is use mod_rewrite (as I have seen..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]