Re: Need help with Apache configuration. Broken images and css
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > Re: Need help with Apache configuration. Broken images and css




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Need help with Apache configuration. Broken images and css  
tienle75@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-08-05 11:20 PM

Hi Tim,

I'm not sure why my images and css are broken.  In my old production
setting, the images and css were fine.

Here's my config file:  (I replaced some names and ip)

Thanks for taking the time to help.

 #=======================================
===================================
#
# Apache httpd configuration file
#
#  This file contains all configuration options
#  to simplify server management
#
#  mls 5-14-97:  Initial configuration
#  tchu 10/25/2000: Add ProductOnly directive
#  tsl  01/05/2000: Added NCCAM development directory
#  tchu 01/26/2001: Added password protection for
/internal/webadmin/webstats
#  tsl  11/05/2001: Added password protection for NIN Senior Health
branch
#                   Blocked apps branch
#  tsl  01/09/2002: Added proxy for NIH browsercheck to fibula
#  tsl  02/10/2002: Redirect to teamsite to full host
teamsite.nlm.nih.gov
#  tsl  02/21/2002: Corrections to proxy for NIHSH browsercheck
#  tsl  06/28/2002: Added proxy for NLM browsercheck
#  tsl  07/03/2002: Added password for survey workarea
#  tsl  08/01/2002: Added NCCAM access to potvind's workarea
#  tsl  08/21/2002: Removed survey password
#  tsl  10/23/2002: Added port 8001 for NetMechanic connections.
#  tsl  12/05/2002: Allowed NetMechanic (http://www.netmechanic.com/)
to
#                   m+ mockups, nlm,NIHSeniorHealth branches
#  tsl  03/11/2003: Opened NINSeniorHealth branch to the world
#  tsl  04/29/2003: Opened NLM branch to the world
#  tsl  03/18/2004: Changed NLM/mockups to UTF-8
#  tsl  04/17/2004: Changed NLM_redesign to UTF-8
#  tsl  04/28/2004: Opened access to nlm_redesign and
medlineplus/mockups to
#                   the Inernet
#  tsl  05/19/2004: Changed browsercheck rules
#  tsl  06/04/2004: Changed nlmarchive to UTF-8. Removed NLM_redesign
#  tsl  04/04/2005: Hack around proxy problem with SIS backing store
#
#
 #=======================================
===================================
#
 #***************************************
***********************************
#
# General Server Configuration options
#
 #***************************************
***********************************

ServerName development.nlm.nih.gov
Port 8001
# Listen to 8001 for NetMechanic.com which can't handle 81
#Listen 81
Listen 8001
ServerType standalone
HostnameLookups off
User  webuser
Group nobody
ServerAdmin websupport@nlm.nih.gov

#
# The ServerTokens directive now accepts the 'ProductOnly' keyword,
# which results in the display of just 'Apache' with no version
# information.  Additional product tokens are still only visible
# with ServerTokens Full.  In addition, ServerTokens now complains
# about bogus keywords (which it used to silently treat as 'Full').
#
ServerTokens ProductOnly

#
# Set server timeout to 3.0 Hour (for stats programs)
#
TimeOut 10800

#
# Turn on rewrite engine (and log if debugging)
#
RewriteEngine on
RewriteLog /www/logs/raw/www.rewrite
RewriteLogLevel 1

#
# If accessed using hostname without the domain, redirect to full
hostname
# (i.e. convert http:/teamsite/ to http:/teamsite.nlm.nih.gov/ )
# There's a few places where cookies will break if switching back and
forth
#
RewriteCond %{HTTP:Host} !\. [NC]
RewriteRule ^(.*) $1 [R=temp,L]

#
# Added by TeamSite install
#
LoadModule iw_ts_rewrite_module /usr/iw-home/lib/mod_iw_ts_rewrite.so

<IfModule mod_mime.c>
AddType text/html .shtml
AddHandler server-parsed .shtml
</IfModule>

#
# mls 7-15-99: UTF8 Support
#
AddType	text/html;charset=utf-8	utf8

#
# Location of documents and CGI
#

DocumentRoot /www/htdocs
ScriptAlias  /valid/cgi/ /www/valid/cgi/
Alias        /valid/ /www/valid/

#
# Proxy for testing browsercheck
#
#
# Insert host path into query string if it isn't there
#
RewriteCond %{QUERY_STRING}           !bhd=http://
RewriteRule htdocs(/browsercheck/.*)
http://wwwcfdev.nlm.nih.gov$1?bhd=http://%{HTTP_HOST}/ [P,QSA]
#
# Otherwise redirect w/o changing query string
#
RewriteRule htdocs(/browsercheck/.*)    http://wwwcfdev.nlm.nih.gov$1
[P]
ProxyPassReverse /browsercheck/
http://wwwcfdev.nlm.nih.gov/browsercheck/

#
# Location of files
#

ServerRoot /www/apache

ErrorLog    /www/logs/raw/testproxy.errors
TransferLog /www/logs/raw/testproxy.access

PidFile        /www/apache/data/testproxy.pid
LockFile       /www/apache/data/testproxy.lock
ScoreBoardFile /www/apache/data/testproxy_status
#
# MIME Support
#
TypesConfig /www/apache/conf/mime.types

#
# Turn off other configuration files
#

AccessConfig   /dev/null
ResourceConfig /dev/null

#
# We don't want any automatic indexing (always use index.html)
#

DirectoryIndex index.html /admin/bad_url.html
#FancyIndexing off
#IndexIgnore *

#
# Handle broken URLs
#

#ErrorDocument 404  /admin/bad_url.html
#ErrorDocument 403  /admin/bad_url.html

#
# Use NCSA extended/common log format
#

LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent
}i\""

#
# Server tuning parameters
#

KeepAlive On
KeepAliveTimeout 15
MaxKeepAliveRequests 100

StartServers 5
MinSpareServers 5
MaxSpareServers 20
MaxClients 200
MaxRequestsPerChild 50

#
# The following directive disables keepalives and HTTP header flushes
for
# netscape 2.x and browsers which spoof it. There are known problems
with these
#

BrowserMatch Mozilla/2 nokeepalive

# DefaultType is the default MIME type for documents which the server
# cannot find the type of from filename extensions.

DefaultType text/plain

# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+)
uncompress
# information on the fly. Note: Not all browsers support this.

AddEncoding x-compress Z
AddEncoding x-gzip gz

#
# Allow server status reports, with the URL of
http://servername/server-status
#

<Location /server-status>
SetHandler server-status
order deny,allow
deny from all
allow from 555.55.
</Location>

#
 #***************************************
***********************************
#
# Server Access control
#
 #***************************************
***********************************
#
# By default, prevent access to all directories
#  also prevent use of .htaccess file
#

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

#
# Allow access to public areas (documents and CGI)
#

<Directory /www/htdocs>

Options FollowSymLinks
AllowOverride None
#
# Currently restrict access to NLM
#
Order Allow,Deny
allow from 555.55.

</Directory>

#
# Directory of web accessible validation tools
#
<Directory /www/valid/>

Options FollowSymLinks
AllowOverride None
#
# Currently restrict access to NLM
#
Order Allow,Deny
allow from 555.55.

</Directory>


#
# TeamSite backing store
#
<Directory /.iwmnt>
Options FollowSymLinks Includes
AllowOverride None
#
# Currently restrict access to NLM
#
Order Allow,Deny
allow from 555.55.

</Directory>

#
# Block apps branch. These files should be viewed from a server that
# has ColdFusion (i.e. wwwcf.nlm.nih.gov)
#
<Directory /.iwmnt/default/main/apps/>

Options None
AllowOverride None
Order Deny,Allow
Deny from all

</Directory>


#
# Allow anyone to view NIHSeniorHealth developemt files
#
<Directory /.iwmnt/default/main/nihseniorhealth/>

Options FollowSymLinks Includes
AllowOverride None
Order Allow,Deny
allow from all

</Directory>

#
# UTF-8 branches
#
<Directory /.iwmnt/webarchive/main/nlmarchive/>

Options FollowSymLinks Includes
AllowOverride None
AddCharset utf-8 .htm .html

#
# Currently restrict access to NLM
#
Order Allow,Deny
allow from 555.55.

</Directory>

#
# Special access for NLM branch
#
<Directory /.iwmnt/default/main/nlm/>

Options FollowSymLinks Includes
AllowOverride None
AddCharset utf-8 .htm .html

#
# Currently restrict access to NLM
#
Order Allow,Deny
allow from all

</Directory>

#
# Special access for M+ mockups
#
<Directory /.iwmnt/default/main/medlineplus/mockups/>

Options FollowSymLinks Includes
AllowOverride None
#
# Currently restrict access to NLM
#
Order Allow,Deny
allow from all



</Directory>

#
# Open potvind's workarea to NCCAM
#
<Directory /.iwmnt/default/main/nlm/WORKAREA/potvind/htdocs/nccam/>

Options FollowSymLinks Includes
AllowOverride None
Order Allow,Deny
allow from 555.55.
allow from  128.231.8.
</Directory>

#
# Aliases & directory statements for TeamSite
#
ScriptAlias /iw-bin/ "/usr/iw-home/httpd/iw-bin/"
Alias /iw/webdesk/ "/usr/iw-home/httpd/webapps/webdesk/"
Alias /iw-icons/ "/usr/iw-home/httpd/iw-icons/"
Alias /iw-mount/ "/.iwmnt/"
Alias /iw/ "/usr/iw-home/httpd/iw/"
Alias /iw "/usr/iw-home/httpd/iw/"
Alias /iw-config/ /usr/iw-home/local/config/

#
# Insert htdocs if in the SIS backing store
#
RewriteCond %{ENV:REMOTE_ADDR !^555.55.73.64$
RewriteRule !^/iw-mount/.*/htdocs - [C]
RewriteRule ^(/iw-mount/sis/.*/(STAGING|(WORKAREA|EDITION)/)[^/]*)/(.*)
$1/htdocs/$4 [PT,L]


<Directory /usr/iw-home/httpd>
Options FollowSymLinks ExecCGI Includes
AllowOverride None
#
# Currently restrict access to NLM
#
Order Allow,Deny
allow from 555.55.

</Directory>







Tim wrote:
> On Fri, 04 Nov 2005 06:56:00 -0800, tienle75 sent:
> 
>
> Show your configuration, provide a test URI for us to look at.  Our
> crystal balls are in at the workshop.
>
> --
> If you insist on e-mailing me, use the reply-to address (it's real but
> temporary).  But please reply to the group, like you're supposed to.
>
> This message was sent without a virus, please destroy some files yourself.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:05 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register