httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bruce" <bedoug...@earthlink.net>
Subject [users@httpd] apache config file.. we need a guru!!!!!
Date Mon, 11 Apr 2005 18:26:47 GMT
hi.

i'm trying to setup an app (Gforge/www.gforge.org) on my own server. i'm
running into some issues that i'm pretty sure have to do with the config
file/DNS setup...

i need to know if there might be an apache/config guru that i can talk
to!!!!

the issue that i have is that i can get to "http://gforge.mesa.com" on my
local server. this is internal to my servers, behind my firewall... however,
when i try to get to http://gforge.mesa.com/projects/testproject" i get an
error.

i'm trying to figure out what i need to do, to correct the issue. is there
something that needs to be changed in the httpd.conf file?


the relevenat sections of the httpd.conf file are listed:
--------------------------------------------------------------
##a httpd.conf - configuration for the Apache web server
#
# Generated automatically... if you edit manually, the changes will be lost
# the next time you run "apacheconfig".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
#
.
.
.
ServerRoot "/etc/httpd"

.
.
.
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
Listen 192.168.1.52:80


#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO
you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
.
.
.
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
LoadModule auth_gforge_module modules/mod_auth_gforge.so

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/perl.conf
Include conf.d/php.conf
Include conf.d/python.conf
Include conf.d/ssl.conf



### Section 2: 'Main' server configuration
#
#
User apache
Group apache

#
# ServerName gives the name and port that the server uses to identify
itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address
here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName 192.168.1.52


#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

NameVirtualHost 192.168.1.52:80

DocumentRoot "/var/www/html"

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir "disable"

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, use this directive instead of "UserDir disable":
    #
    #UserDir public_html
</IfModule>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.htm index.shtml index.php index.php4
index.php3 index.cgi index.pl

#
# AccessFileName: The name of the file to look for in each directory
# for access control information.  See also the AllowOverride directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig "/etc/mime.types"


#
#       Primary GForge vhost
#
# HTTP
<VirtualHost 192.168.1.52:80>
        ServerName gforge.mesa.com
        #ServerAlias app2.gotdns.com
        ServerAdmin webmaster@gforge.mesa.com
        DocumentRoot /var/www/gforge/www

<Directory /var/www/gforge/www>
  Options Indexes FollowSymlinks
  AllowOverride All
  order allow,deny
  allow from all
  php_admin_value include_path
"/var/www/gforge/etc/custom:/var/www/gforge:/var/www/gforge/www/include:."
  php_admin_value default_charset "UTF-8"
  php_admin_value register_globals "On"
</Directory>

        Alias /images/ /var/www/gforge/www/images/
        DirectoryIndex index.html index.php
        <IfModule mod_userdir.c>
                UserDir disabled
        </IfModule>

        php_admin_value default_charset "UTF-8"

        <Directory /var/www/gforge/www>
                Include   /var/www/gforge/etc/httpd.secrets
        </Directory>

        ScriptAliasMatch ^/plugins/([^/]*)/cgi-bin/(.*)
/usr/lib/gforge/plugins/$1/cgi-bin/$2

        # Projects and Users script
        <Location /projects>
                ForceType application/x-httpd-php
        </Location>
        <Location /users>
                ForceType application/x-httpd-php
        </Location>

        # 404 Error document
        ErrorDocument 404 /404.php
        LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
gforge
#       CustomLog "|/usr/sbin/cronolog
/var/www/gforge/var/log/#gforge/%Y/%m/%d/gforge.log" gforge

        # GForge without the DNS delegation
        # Project home pages are in a virtual /www/<group> location
        AliasMatch ^/www/([^/]*)/(.*) /home/groups/$1/htdocs/$2
        ScriptAliasMatch ^/([^/]*)/cgi-bin/(.*) /home/groups/$1/cgi-bin/$2
        <Directory /home/groups>
                Options Indexes FollowSymlinks
                AllowOverride All
                order allow,deny
                allow from all
        </Directory>

        # Ensure that we don't try to use SSL on SSL Servers
        <IfModule apache_ssl.c>
                SSLDisable
        </IfModule>
</VirtualHost>

# SCM HTTP vhost
<VirtualHost 192.168.1.52:80>
<Directory /var/www/gforge/scm>
  Options Indexes FollowSymlinks
  AllowOverride All
  order allow,deny
  allow from all
  php_admin_value include_path
"/var/www/gforge/etc/custom:/var/www/gforge:/var/www/gforge/www/include:."
  php_admin_value default_charset "UTF-8"
</Directory>

  ServerName scm.gforge.mesa.com
  DocumentRoot /var/www/gforge/scm
  Alias /images/ /var/www/gforge/www/images/
  LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
#  CustomLog "|/usr/sbin/cronolog
/var/www/gforge/var/log/gforge/%#Y/%m/%d/gforge.log" gforge
  # Ensure that we don't try to use SSL on SSL Servers
  <IfModule apache_ssl.c>
    SSLDisable
  </IfModule>
</VirtualHost>



#bdouglas---------------
<VirtualHost 192.168.1.52:80>
#-----------------------
ServerName lserver2.mesa.com
ServerAlias app1.gotdns.com

.
.
.

#b douglas-------------------
</VirtualHost>
#-------------------


.
.
.
------------------------------------------------------------

thanks...

bruce
bedouglas@earthlink.net



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message