[SLUG] Apache virtual server configuration

2005-07-26 Thread Edwin Humphries
We're just converting over from our web server being a single site 
server (root in /var/www/html/) to also hosting an Intranet/Extranet 
site. So we want to move the site over to /var/www/html/website, but 
although we've added a new virtual server in httpd.conf, it still goes 
back to the /var/www/html/ location. Can anyone offer some ideas?


It's Redhat ES3. The httpd.conf file (stripped) is attached

--
Regards,
Edwin Humphries
Mobile: 0419 233 051
Ironstone Technology Pty Ltd
P. O. Box 423, Kiama, NSW, 2533
Phone: +61 (0)2 4233 2285
Facsimile: +61 (0)2 4233 2299
Web: http//www.ironstone.com.au

***
This email is intended for the named addressee/s only and
may contain confidential or privileged information. If you
are not a named addressee please delete the message and
notify the sender.
***
ServerTokens OS
ServerRoot /etc/httpd
PidFile run/httpd.pid
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
IfModule prefork.c
StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   150
MaxRequestsPerChild  1000
/IfModule
IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule
Listen 0.0.0.0:80
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
User apache
Group apache
ServerAdmin [EMAIL PROTECTED]
UseCanonicalName Off
DocumentRoot /var/www/html
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /var/www/html
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
/Directory
IfModule mod_userdir.c
UserDir disable
/IfModule
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
Files ~ ^\.ht
Order allow,deny
Deny from all
/Files
TypesConfig /etc/mime.types
DefaultType text/plain
IfModule mod_mime_magic.c
#   MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
/IfModule
HostnameLookups Off
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
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ /var/www/icons/
Directory /var/www/icons
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
Alias /manual /var/www/manual
Directory /var/www/manual
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
IfModule mod_dav_fs.c
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
/IfModule
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
Directory /var/www/cgi-bin
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory

Re: [SLUG] Apache virtual server configuration

2005-07-26 Thread Dean Hamstead

put  's around the path

add

ServerName www.ironstone.com.au

if your running only one site, you dont need virtual hosts.

Dean

Edwin Humphries wrote:
We're just converting over from our web server being a single site 
server (root in /var/www/html/) to also hosting an Intranet/Extranet 
site. So we want to move the site over to /var/www/html/website, but 
although we've added a new virtual server in httpd.conf, it still goes 
back to the /var/www/html/ location. Can anyone offer some ideas?


It's Redhat ES3. The httpd.conf file (stripped) is attached




ServerTokens OS
ServerRoot /etc/httpd
PidFile run/httpd.pid
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
IfModule prefork.c
StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   150
MaxRequestsPerChild  1000
/IfModule
IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule
Listen 0.0.0.0:80
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
User apache
Group apache
ServerAdmin [EMAIL PROTECTED]
UseCanonicalName Off
DocumentRoot /var/www/html
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /var/www/html
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
/Directory
IfModule mod_userdir.c
UserDir disable
/IfModule
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
Files ~ ^\.ht
Order allow,deny
Deny from all
/Files
TypesConfig /etc/mime.types
DefaultType text/plain
IfModule mod_mime_magic.c
#   MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
/IfModule
HostnameLookups Off
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
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ /var/www/icons/
Directory /var/www/icons
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
Alias /manual /var/www/manual
Directory /var/www/manual
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
IfModule mod_dav_fs.c
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
/IfModule
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
Directory /var/www/cgi-bin
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory
IndexOptions FancyIndexing VersionSort NameWidth=*
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) 

Fwd: [SLUG] Apache virtual server configuration

2005-07-26 Thread James Polley
really should remember to CC the list..

-- Forwarded message --
From: James Polley [EMAIL PROTECTED]
Date: Jul 27, 2005 9:13 AM
Subject: Re: [SLUG] Apache virtual server configuration
To: [EMAIL PROTECTED]


On 7/27/05, Edwin Humphries [EMAIL PROTECTED] wrote:

 NameVirtualHost 202.173.184.198

 VirtualHost www.ironstone.com.au
 DocumentRoot /var/www/html/website/
 HostNameLookups off
 /VirtualHost

VirtualHost 202.173.184.198
ServerName www.ironstone.com.au
ServerAlias ironstone.com.au
DocumentRoot /var/www/html/website/
HostNameLookups off
/VirtualHost


--
There is nothing more worthy of contempt than a man who quote himself
in his email footer - Zhasper, 2005


-- 
There is nothing more worthy of contempt than a man who quote himself
in his email footer - Zhasper, 2005
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


RE: [SLUG] Apache virtual server configuration

2005-07-26 Thread Roger Barnes
Hi Edwin,

 We're just converting over from our web server being a single 
 site server (root in /var/www/html/) to also hosting an 
 Intranet/Extranet site. So we want to move the site over to 
 /var/www/html/website, but although we've added a new virtual 
 server in httpd.conf, it still goes back to the 
 /var/www/html/ location. Can anyone offer some ideas?

Not sure if the following will work, but it's based on referring to a working 
vhost config (apache 1.3)...

VirtualHost 202.173.184.198
ServerName www.ironstone.com.au
DocumentRoot /var/www/html/website/
HostNameLookups off
/VirtualHost

HTH,
- Rog
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Apache virtual server configuration

2005-07-26 Thread Peter Rundle

Edwin,

When you are using NameVirtualHost (I.E HTTP/1.1) you need to give the 
site a name. something like;


NameVirtualHost 202.173.184.198:80

VirtualHost 202.173.184.198:80
  ServerAdmin [EMAIL PROTECTED]
  ServerName www.ironstome.com.au
  DocumentRoot /var/www/html/website/
  ErrorLog logs/ironstone-error_log
  CustomLog logs/ironstone-access_log common
/VirtualHost


VirtualHost 202.173.184.198:80
  ServerAdmin [EMAIL PROTECTED]
  ServerName ww2.ironstome.com.au
  DocumentRoot /var/www/html/website2/
  ErrorLog logs/ironstone2-error_log
  CustomLog logs/ironstone2-access_log common
/VirtualHost



HTH

P.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Apache virtual server configuration

2005-07-26 Thread Edwin Humphries

Guys,

Thanks for your input. I've tried all that, and it still stubbornly 
loads what in the document root directory, rather than the test file in 
the /website directory.


Does it make any difference in all this that the actual server is on an 
internal IP behind a port-forwarding firewall?


Peter Rundle wrote:

Edwin,

When you are using NameVirtualHost (I.E HTTP/1.1) you need to give the 
site a name. something like;


NameVirtualHost 202.173.184.198:80

VirtualHost 202.173.184.198:80
  ServerAdmin [EMAIL PROTECTED]
  ServerName www.ironstome.com.au
  DocumentRoot /var/www/html/website/
  ErrorLog logs/ironstone-error_log
  CustomLog logs/ironstone-access_log common
/VirtualHost


VirtualHost 202.173.184.198:80
  ServerAdmin [EMAIL PROTECTED]
  ServerName ww2.ironstome.com.au
  DocumentRoot /var/www/html/website2/
  ErrorLog logs/ironstone2-error_log
  CustomLog logs/ironstone2-access_log common
/VirtualHost



HTH

P.


--
Regards,
Edwin Humphries
Mobile: 0419 233 051
Ironstone Technology Pty Ltd
P. O. Box 423, Kiama, NSW, 2533
Phone: +61 (0)2 4233 2285
Facsimile: +61 (0)2 4233 2299
Web: http//www.ironstone.com.au

***
This email is intended for the named addressee/s only and
may contain confidential or privileged information. If you
are not a named addressee please delete the message and
notify the sender.
***
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Apache virtual server configuration

2005-07-26 Thread Edwin Humphries

Roger,

Well, that worked (thanks for that), but on restarting httpd, I got an 
error message:


Starting httpd: [Wed Jul 27 10:13:37 2005] [warn] NameVirtualHost 
202.173.184.198:0 has no VirtualHosts.


Roger Barnes wrote:

Hi Edwin,

Try VirtualHost * instead, not sure if it will help, but worth a try.

- R 




-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Edwin Humphries

Sent: Wednesday, 27 July 2005 9:39 AM
To: Peter Rundle
Cc: slug@slug.org.au
Subject: Re: [SLUG] Apache virtual server configuration

Guys,

Thanks for your input. I've tried all that, and it still 
stubbornly loads what in the document root directory, rather 
than the test file in the /website directory.


Does it make any difference in all this that the actual 
server is on an internal IP behind a port-forwarding firewall?


--
Regards,
Edwin Humphries
Mobile: 0419 233 051
Ironstone Technology Pty Ltd
P. O. Box 423, Kiama, NSW, 2533
Phone: +61 (0)2 4233 2285
Facsimile: +61 (0)2 4233 2299
Web: http//www.ironstone.com.au

***
This email is intended for the named addressee/s only and
may contain confidential or privileged information. If you
are not a named addressee please delete the message and
notify the sender.
***
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


RE: [SLUG] Apache virtual server configuration

2005-07-26 Thread Roger Barnes
 Well, that worked (thanks for that), but on restarting httpd, 
 I got an error message:
 
 Starting httpd: [Wed Jul 27 10:13:37 2005] [warn] 
 NameVirtualHost 202.173.184.198:0 has no VirtualHosts.
 

You don't need that line anymore in this case.   Best practices might dictate 
another approach (anyone?), but removing the NameVirtualHost line should be ok.

- Rog

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Apache virtual server configuration

2005-07-26 Thread Edwin Humphries

Roger,

Thanks for that; all issues now resolved

Roger Barnes wrote:
Well, that worked (thanks for that), but on restarting httpd, 
I got an error message:


Starting httpd: [Wed Jul 27 10:13:37 2005] [warn] 
NameVirtualHost 202.173.184.198:0 has no VirtualHosts.





You don't need that line anymore in this case.   Best practices might dictate 
another approach (anyone?), but removing the NameVirtualHost line should be ok.

- Rog



--
Regards,
Edwin Humphries
Mobile: 0419 233 051
Ironstone Technology Pty Ltd
P. O. Box 423, Kiama, NSW, 2533
Phone: +61 (0)2 4233 2285
Facsimile: +61 (0)2 4233 2299
Web: http//www.ironstone.com.au

***
This email is intended for the named addressee/s only and
may contain confidential or privileged information. If you
are not a named addressee please delete the message and
notify the sender.
***
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html