The following reply was made to PR general/2980; it has been noted by GNATS.
From: "Brian V Bonini" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Subject: Re: general/2980: files in htdocs don't resolve correctly Date: Thu, 10 Sep 1998 10:12:24 -0400 Sorry, I'm using name-based virtual hosts If I call the primary domain for the server it resolves correctly to index.html located in htdocs however from index.html all links point to htdocs or htdocs/images but the server tries to resolve these links to htdocs/spi /spi obviously being a sub directory and also a virtual host. I hope this is the info you need and apologize for not being more literate in this area. This is not my area of expetise. I'm inquiring because after encountering the problem and doing a little research on your web site in an attempt to better educate my self on this I am not sure that the company I purchase the virtual server from has implmented the correct resolve by adding the primary domain as a virtual host. I've inlcuded a copy of my hhtpd.conf file. Thank You for your time. -Brian [EMAIL PROTECTED] -- Here is a copy of httpd.conf: --Begin-- ### httpd.conf Revision 1.2 for Apache 1.1.3 07/16/97 Jim Radford ### ### NOTE: This is the main configuration file for your Virtual Webserver ### Do not just start adding stuff without understanding what your ### doing or your server will stop working properly. You may view ### Documentation Online at http://www.apache.org/ ### ### Directives are "CaPs" Sensitive. Please be sure to look at the ### examples to prevent accidentally misconfiguring your server. ### BEGIN SERVERCONFIG ### ## Do not change the ServerType or your server will cease to work ServerType inetd ## ## Directive: HostnameLookups ## Options: on/off ## Description:turns on or off reverse dns lookups in your logfiles. ## when off the webserver responds quicker, when on log ## analyzers have more information to analyze. ## Default: on #HostnameLookups off ## Directive: User ## Options: Must be your assigned Virtual Server Username ## Description:This is the user that the webserver runs as, if changed ## your server will not be able to access any documents. User changed for security ## Directive: ServerAdmin ## Options: any valid email address ## Description:The Contact Email Address to use incase of server ## problems. This address shows up in some errors and ## is also available in CGI scripts as SERVER_ADMIN. ## Default: [EMAIL PROTECTED] ServerAdmin [EMAIL PROTECTED] ## Directive: ServerRoot ## Options: Any Valid Virtual Path ## Description: point this to the directory where your cgi-bin, htdocs, ## logs reside. ## Default: /usr/local/etc/httpd ServerRoot /usr/local/etc/httpd ## Directive: ErrorLog ## Options: Any Valid Virtual File ## Description: Where to log server errors, useful for debugging scripts, ## file/directory permissions, etc. If it does not start ## with a "/", ServerRoot is prepended to it. ## This can be within a <VirtualHost> Pair. ## Default: logs/error_log ErrorLog logs/error_log ## Directive: TransferLog ## Options: Any Valid Virtual File ## Description: Where to log "hits" that your Webserver takes. ## If it does not start with a "/", ServerRoot is prepended ## to it. This can be within a <VirtualHost> Pair. ## Default: logs/access_log TransferLog logs/access_log ## Directive: AgentLog ## Options: Any Valid Virtual File ## Description: Where to log "Web Browser" Statistics that your Webserver takes. ## If it does not start with a "/", ServerRoot is prepended ## to it. This can be within a <VirtualHost> Pair. ## Default: logs/agent_log AgentLog logs/agent_log ## Directive: RefererLog ## Options: Any Valid Virtual File ## Description: Where to log "referring" pages that your Webserver takes. ## If it does not start with a "/", ServerRoot is prepended ## to it. This can be within a <VirtualHost> Pair. ## NOTE: We know Referer is spelled incorrectly, It is the way ## The Software comes from The Apache Group. :) ## Default: logs/access_log RefererLog logs/referer_log ## Directive: ServerName ## Options: A VALID domain name assigned to you. ## Description: You should leave the default alone, You may also put this ## Into a <VirtualHost> Pair. ## Note: You cannot just invent host names and hope they work. The name ## you define here must be a valid DNS name for your host. If you don't ## understand this, ask technical support! ## Default: www.gfx-design.com ServerName www.gfx-design.com ## Directive: Timeout ## Options: 0 - 32767 ## Description: The number of seconds before recieves and sends time out ## Default: 300 (We recommend you don't change this number unless ## support asks you to. Timeout 300 ## Directive: KeepAlive ## Options: On/Off ## Description: Whether or not to allow persistent connections (more than ## one request per connection). Set to "Off" to deactivate. ## Default: On KeepAlive On # KeepAliveTimeout: Number of seconds to wait for the next request ## Directive: KeepAliveTimeout ## Options: 0 - 32768 ## Description: Number of seconds to wait for the next request ## Default: 15 KeepAliveTimeout 15 ## Directive: <VirtualHost> </VirtualHost> ## Options: domain name. ## Description: Allows Virtually Hosting Domains withing your Virtual ## Server. Any SRM or ACCESS Options can safely be placed ## between <VirtualHost> Directives. ## Default: none -- please use following Example #<VirtualHost www.second-domain.com> #ServerName www.second-domain.com #ServerAdmin [EMAIL PROTECTED] #DocumentRoot /usr/local/etc/httpd/htdocs/second-domain #TransferLog logs/access_second-domain_log #ErrorLog logs/error_second-domain_log #</VirtualHost> # VirtualHost gfx-design.com Added by vaddvhost <VirtualHost gfx-design.com> ServerName gfx-design.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs </VirtualHost> # VirtualHost www.gfx-design.com Added by vaddvhost <VirtualHost www.gfx-design.com> ServerName www.gfx-design.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs </VirtualHost> # VirtualHost specialtyproducts.net Added by vaddvhost <VirtualHost specialtyproducts.net> ServerName specialtyproducts.net ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs/spi ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/spi/cgi-bin/ </VirtualHost> # VirtualHost www.specialtyproducts.net Added by vaddvhost <VirtualHost www.specialtyproducts.net> ServerName www.specialtyproducts.net ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs/spi ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/spi/cgi-bin/ </VirtualHost> # VirtualHost siroccovideo.com Added by vaddvhost <VirtualHost siroccovideo.com> ServerName siroccovideo.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs/sirocco ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/sirocco/cgi-bin/ </VirtualHost> # VirtualHost www.siroccovideo.com Added by vaddvhost <VirtualHost www.siroccovideo.com> ServerName www.siroccovideo.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs/sirocco ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/sirocco/cgi-bin/ </VirtualHost> # VirtualHost studiostreet.com Added by vaddvhost <VirtualHost studiostreet.com> ServerName studiostreet.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs/ssae ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/ssae/cgi-bin/ </VirtualHost> # VirtualHost www.studiostreet.com Added by vaddvhost <VirtualHost www.studiostreet.com> ServerName www.studiostreet.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/etc/httpd/htdocs/ssae ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/ssae/cgi-bin/ </VirtualHost> --End-- -----Original Message----- From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Wednesday, September 09, 1998 10:12 PM Subject: Re: general/2980: files in htdocs don't resolve correctly >[In order for any reply to be added to the PR database, ] >[you need to include <[EMAIL PROTECTED]> in the Cc line ] >[and leave the subject line UNCHANGED. This is not done] >[automatically because of the potential for mail loops. ] >[If you do not include this Cc, your reply may be ig- ] >[nored unless you are responding to an explicit request ] >[from a developer. ] >[Reply only with text; DO NOT SEND ATTACHMENTS! ] > > >Synopsis: files in htdocs don't resolve correctly > >State-Changed-From-To: open-feedback >State-Changed-By: marc >State-Changed-When: Wed Sep 9 18:12:35 PDT 1998 >State-Changed-Why: >It is pretty hard for us to do anything if you don't tell us >what your configuration is. Are you using IP or name based >virtual hosts? Did you read the upgrading instructions and >add the appropriate NameVirtualHost setup? > >If you can't tell us exactly what your virtual host config is >and give exact examples of requests, where you think they >should be going, and where they are going, we are unable >to do anything. > >
