[PLUG] Tuning httpd.conf

Jason LaPier jason.lapier at gmail.com
Mon Mar 10 18:15:38 UTC 2014


If you're getting "Not Found", I suspect your new config has reset the root
directory of the web server. I see DocumentRoot "/srv/httpd/htdocs" in your
diff. Was that added in the new config, or was that from the old one?

You can always rename the new config and replace it with the old config and
restart apache and see if the app comes back.


On Mon, Mar 10, 2014 at 10:22 AM, Rich Shepard <rshepard at appl-ecosys.com>wrote:

> On Mon, 10 Mar 2014, Rich Shepard wrote:
>
> >   I suspect that the new httpd.conf restricts access to that directory;
> > there are quite a few changes from the previous version of the config
> file I
> > used. Would one of you httpd exerienced folks take a look at httpd.conf
> and
> > see what I need to modify to access this application?
>
>    I diff'ed httpd.conf from last Thursday (when I could access the
> accounting application) and the new httpd.conf. Other than module
> differences (which might make a difference, but I doubt it) these seem to
> be
> the only relevant ones:
>
> 166,178c214,216
> < # DocumentRoot: The directory out of which you will serve your
> < # documents. By default, all requests are taken from this directory, but
> < # symbolic links and aliases may be used to point to other locations.
> < #
> < DocumentRoot "/srv/httpd/htdocs"
> <
> < #
> < # Each directory to which Apache has access can be configured with
> respect
> < # to which services and features are allowed and/or disabled in that
> < # directory (and its subdirectories).
> < #
> < # First, we configure the "default" to be a very restrictive set of
> < # features.
> ---
> > # Deny access to the entirety of your server's filesystem. You must
> > # explicitly permit access to web content directories in other
> > # <Directory> blocks below.
> 181,184c219,220
> <     Options FollowSymLinks
> <     AllowOverride None
> <     Order deny,allow
> <     Deny from all
> ---
> >     AllowOverride none
> >     Require all denied
> 215c254
> <     #   Options FileInfo AuthConfig Limit
> ---
> >     #   AllowOverride FileInfo AuthConfig Limit
> 222,223c261
> <     Order allow,deny
> <     Allow from all
> ---
> >     Require all granted
> 241,245c279,281
> < <FilesMatch "^\.ht">
> <     Order allow,deny
> <     Deny from all
> <     Satisfy All
> < </FilesMatch>
> ---
> > <Files ".ht*">
> >     Require all denied
> > </Files>
> 328c364
> <     #Scriptsock /var/run/httpd/cgisock
> ---
> >     #Scriptsock cgisock
> 338,339c374
> <     Order allow,deny
> <     Allow from all
> ---
> >     Require all granted
> 432a457
> > # Defaults: EnableMMAP On, EnableSendfile Off
> 435c460
> < #EnableSendfile off
> ---
> > #EnableSendfile on
> 473a499,503
> > # Configure mod_proxy_html to understand HTML4/XHTML1
> > <IfModule proxy_html_module>
> > Include /etc/httpd/extra/proxy-html.conf
> > </IfModule>
> >
> 484a515,526
> > #
> > # uncomment out the below to deal with user agents that deliberately
> > # violate open standards by misusing DNT (DNT *must* be a specific
> > # end-user choice)
> > #
> > #<IfModule setenvif_module>
> > #BrowserMatch "MSIE 10.0;" bad_DNT
> > #</IfModule>
> > #<IfModule headers_module>
> > #RequestHeader unset DNT env=bad_DNT
> > #</IfModule>
>
> Rich
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list