PDA

Bekijk Volledige Versie : Subdomein 403 error



patrickekkel
06/08/11, 13:12
Beste wht'ers

ik heb een klein probleempje met mijn httpd denk ik

na dat ik mod_ruid2 heb geinstaleerd kan de server geen Subdomeinen weergeven
dan krijg ik de 403 zie http://test.lidelfonline.nl
maar als ik de httpd een restart geef doet hij het heel even
en dan als ik weer op f5 druk krijg ik weer de 403
maar als ik ga naar http://lidelfonline.nl/test geeft hij hem wel weer

ik gebruik mod_ruid2-0.9.4

Wat heb ik met de installatie over het hoofd gezien ?

patrickekkel
06/08/11, 14:19
Dit is mijn httpd.conf


#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.

ServerRoot "/etc/httpd"
Listen 80

#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
#LoadModule php5_module /usr/lib/apache/libphp5.so
LoadModule ruid2_module /usr/lib/apache/mod_ruid2.so
Include /etc/httpd/conf/extra/httpd-phpmodules.conf

User apache
Group apache

ServerAdmin admin@localhost
DocumentRoot "/var/www/html"

<Directory /home/*>
AllowOverride All
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

<Directory />
Options All
AllowOverride All
</Directory>

<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
SetEnv PHP_INI_SCAN_DIR
</IfModule>
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
</IfModule>

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog /var/log/httpd/error_log
LogLevel warn

<IfModule log_config_module>
#replace %b with %O for more accurate logging
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%O %I" bytes

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog /var/log/httpd/access_log common
</IfModule>

<IfModule alias_module>
# Include some DirectAdmin alias
Include conf/extra/httpd-alias.conf
</IfModule>

<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-gzip .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType video/x-ms-asf .avi
AddType video/mpeg .mpg
AddType video/mpeg .mpeg
AddType video/quicktime .mov
AddType video/x-ms-wmv .wmv
</IfModule>

#EnableMMAP off
#EnableSendfile off

################################################## #####################################
# Do not change anything in included files, because they are rewritten by DirectAdmin #
################################################## #####################################

# This is needed for PHP
Include conf/extra/httpd-php-handlers.conf

# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf

# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

# Deflate module settings
Include conf/extra/httpd-deflate.conf

# All the DirectAdmin vhosts
Include conf/extra/directadmin-vhosts.conf

# All suPHP directives
Include conf/extra/httpd-suphp.conf

# For user configurations not maintained by DirectAdmin. Empty by default.
Include conf/extra/httpd-includes.conf

################################################## #####################################
# End of included files that are rewritten by DirectAdmin #
################################################## #####################################

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

®on
06/08/11, 14:48
Wat heb ik met de installatie over het hoofd gezien ?
Je error_log file, want dat zou bij mij de eerste plek zijn om te kijken.

patrickekkel
06/08/11, 15:13
Je error_log file, want dat zou bij mij de eerste plek zijn om te kijken.

[Sat Aug 06 04:21:49 2011] [crit] [client ipadres] (13)Permission denied: /home/lidelf/.htaccess pcfg_openfile: unable to check htaccess file, ensure i$
[Sat Aug 06 04:21:49 2011] [crit] [client ipadres] (13)Permission denied: /home/lidelf/.htaccess pcfg_openfile: unable to check htaccess file, ensure i$
[Sat Aug 06 04:22:44 2011] [crit] [client ipadres] (13)Permission denied: /home/lidelf/.htaccess pcfg_openfile: unable to check htaccess file, ensure i$
[Sat Aug 06 04:22:44 2011] [crit] [client ipadres] (13)Permission denied: /home/lidelf/.htaccess pcfg_openfile: unable to check htaccess file, ensure i$
[Sat Aug 06 10:59:36 2011] [crit] [client ipadres] (13)Permission denied: /home/lidelf/.htaccess pcfg_openfile: unable to check htaccess file, ensure i$
[Sat Aug 06 10:59:36 2011] [crit] [client ipadres]
Dit is wat ik te zien krijg

Maar ik kan geen .htaccess vinden in dat acount

BReady
06/08/11, 15:18
Probeer je web directory (/home/lidelf/) te chmodden naar 777.

patrickekkel
06/08/11, 15:22
oke dat was het :)

heel erg bedankt

dennis0162
06/08/11, 16:15
Probeer je web directory (/home/lidelf/) te chmodden naar 777.

Lekker advies:thumbdown: nu geef je meteen iedereen rechten op de map.

@patrick stuur ff een mailtje dan kijk ik wel.

The-BosS
06/08/11, 17:11
Probeer je web directory (/home/lidelf/) te chmodden naar 777.

Wat een toffe contradictie, je installeert juist mod_ruid om alles in de user zijn beheer te houden en dan gij jij doodleuk even alles voor iedereen toegankelijk maken met een chmod 777.

dreamhost_nl
06/08/11, 20:01
Wat waren de oorsponkelijke rechten van het path?

wijtec
07/08/11, 00:46
probeer is chmod 711 op /home/lidelf/ (en chown naar lidelf.lidelf) dan zou het als het goed is moeten werken

Piwi-Web
07/08/11, 13:05
Staat het standaard niet op 644?
Waarschijnlijk was/is de map niet aan de juiste gebruiker gekoppelt

Geert-Jan
07/08/11, 13:26
Staat het standaard niet op 644?
Waarschijnlijk was/is de map niet aan de juiste gebruiker gekoppelt

mappen v.s. bestanden......

dennis0162
07/08/11, 13:26
De mod_ruid config was niet aanwezig bij subdomeinnamen. (virtual_host2_sub.conf niet aangepast)