PDA

View Full Version : multiviews not working


Stown
24th June 2009, 20:18
Hi,

My setup is Centos 5.3 ispconfig 3 all working.

Only i upload a script what i made with multiviews and it is not working.

Also i added Multiviews to the /etc/httpd/conf/httpd.conf file but it is not working.

And if i set a .htaccess file i get a internal error on the screen?

Can anybody help me?

Thanks

till
24th June 2009, 21:19
Please post the exact error messages that you get in the error log of the website.

Stown
25th June 2009, 08:52
I get 404 error when i go to http://www.eertwegh.nl/index/showroom

Also for example http://www.eertwegh.nl/index -> index.php not working

http://www.eertwegh.nl/index.php works ofcourse and http://www.eertwegh.nl/index.php/showroom too.

till
25th June 2009, 09:51
Please post the exact error messages that you get in the error log of the website.

wouterw
25th June 2009, 10:04
Add this in you website domain Options in ISPconfig with the correct paths:


<Directory /home/www/mydomain.com/web>
Options +MultiViews
</Directory>
<Directory /home/www/clients/client1/web1/web>
Options +MultiViews
</Directory>

Stown
25th June 2009, 17:54
Is not working.. same problem

till
25th June 2009, 17:55
As long as you refuse to post the exact error messages from the error log of the website, we will not be able to help you!

Stown
25th June 2009, 18:09
This is some of the last things in the error.log of that website.

[Thu Jun 25 17:51:05 2009] [error] [client 86.83.234.237] File does not exist: /var/www/clients/client2/web1/web/index, referer: http://www.eertwegh.nl/
[Thu Jun 25 17:51:05 2009] [error] [client 86.83.234.237] File does not exist: /var/www/error/404.html, referer: http://www.eertwegh.nl/
[Thu Jun 25 17:56:08 2009] [error] [client 86.83.234.237] File does not exist: /usr/share/squirrelmail/src/favicon.ico
[Thu Jun 25 17:56:08 2009] [error] [client 86.83.234.237] File does not exist: /var/www/error/404.html
[Thu Jun 25 18:02:18 2009] [error] [client 86.83.234.237] File does not exist: /var/www/clients/client2/web1/web/index, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:18 2009] [error] [client 86.83.234.237] File does not exist: /var/www/error/404.html, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:19 2009] [error] [client 86.83.234.237] File does not exist: /var/www/clients/client2/web1/web/index, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:19 2009] [error] [client 86.83.234.237] File does not exist: /var/www/error/404.html, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:19 2009] [error] [client 86.83.234.237] File does not exist: /var/www/clients/client2/web1/web/index, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:19 2009] [error] [client 86.83.234.237] File does not exist: /var/www/error/404.html, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:19 2009] [error] [client 86.83.234.237] File does not exist: /var/www/clients/client2/web1/web/index, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:19 2009] [error] [client 86.83.234.237] File does not exist: /var/www/error/404.html, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:20 2009] [error] [client 86.83.234.237] File does not exist: /var/www/clients/client2/web1/web/index, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:20 2009] [error] [client 86.83.234.237] File does not exist: /var/www/error/404.html, referer: http://www.eertwegh.nl/
[Thu Jun 25 18:02:22 2009] [error] [client 86.83.234.237] File does not exist: /var/www/clients/client2/web1/web/index

Can it have something to do with this?

[root@server1 web1]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Thu Jun 25 18:02:14 2009] [warn] NameVirtualHost 213.163.64.10:80 has no VirtualHosts
[Thu Jun 25 18:02:14 2009] [warn] NameVirtualHost 213.163.64.100:443 has no VirualHosts
[Thu Jun 25 18:02:14 2009] [warn] NameVirtualHost 213.163.64.101:80 has no VirtalHosts
[Thu Jun 25 18:02:14 2009] [warn] NameVirtualHost 213.163.64.101:443 has no VirualHosts
[Thu Jun 25 18:02:14 2009] [warn] NameVirtualHost 213.163.64.99:443 has no VirtalHosts
[Thu Jun 25 18:02:14 2009] [warn] NameVirtualHost *:443 has no VirtualHosts
[Thu Jun 25 18:02:14 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]

wouterw
26th June 2009, 00:13
* Can you confirm that the given Apache directives have been written to /etc/httpd/conf/sites-available/eertwegh.nl.vhost?
* Do the directories in this directive correspond with the real system paths?

dzudzu
26th June 2009, 12:58
Also i would point out that if you used ifmodule in vhost file that you verify that module is present becouse <ifmodule something> ... </ifmodule> won't be processed if that module does not exist for apache

Stown
26th June 2009, 18:04
Yes, it works! Thank you all.

I nano'd my /etc/httpd/conf/sites-available/eertwegh.nl.vhost first and added multiviews for the symlink location: /var/www/eertwegh.nl/web and that didnt worked.

Now i added multiviews to the second directory path what is a full path. /var/www/clients/client2/web1/web. And that worked for me!

See:

<Directory /var/www/eertwegh.nl>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost 213.163.64.99:80>
DocumentRoot /var/www/clients/client2/web1/web

ServerName eertwegh.nl
ServerAlias *.eertwegh.nl
ServerAdmin webmaster@eertwegh.nl

ErrorLog /var/log/ispconfig/httpd/eertwegh.nl/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

<Directory /var/www/eertwegh.nl/web>
Options FollowSymLinks MultiViews
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client2/web1/web>
Options FollowSymLinks MultiViews
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
</Directory>

# php as cgi enabled
ScriptAlias /php5-cgi /var/www/php-cgi-scripts/web1/php-cgi-starter
Action php5-cgi /php5-cgi
AddHandler php5-cgi .php .php3 .php4 .php5
<Directory /var/www/php-cgi-scripts/web1/>
Order allow,deny
Allow from all
</Directory>


</VirtualHost>

till
26th June 2009, 18:07
Never edit this file manually, all manual changes will be remove. Instead add your changes to the apache directives filed of the site in ISPConfig.

Stown
26th June 2009, 18:13
You mean this file? /usr/local/ispconfig/server/conf/vhost.conf.master

falko
27th June 2009, 19:35
There's a field called "Apache Directives" for each web site in ISPConfig. Use this to add your custom directives - don't edit any files.

Stown
27th June 2009, 20:42
i placed followed into ispconfig site configuration and it works:

<Directory /var/www/clients/client2/web1/web>
Options MultiViews All
</Directory>

This is the right structure to solve this problem?

falko
28th June 2009, 13:42
Should be ok. :)

Stown
30th September 2009, 22:07
Why does this solution not work anymore with the latest svn installation? I must have MultiViews on

till
1st October 2009, 10:46
There has nothing been changed in SVN lately. Most likely you used a wrong path in the directory staement. Take a look at the vhost file and make sure that the path you use is identical with the path of the vhost.

Stown
3rd October 2009, 10:05
EDIT: Solved! I had to chmod the web dir to 777 and then the 403 errors went away.

Look at my vhost: I've tried everything.. It loads the defaut index.php but when i go to eertwegh.nl/index/algemeen it says 403 forbidden.

<Directory /var/www/eertwegh.nl>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost 213.163.64.99:80>
DocumentRoot /var/www/clients/client1/web1/web

ServerName eertwegh.nl
ServerAlias *.eertwegh.nl
ServerAdmin webmaster@eertwegh.nl

ErrorLog /var/log/ispconfig/httpd/eertwegh.nl/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

<Directory /var/www/eertwegh.nl/web>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web1/web>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

# php as cgi enabled
ScriptAlias /php5-cgi /var/www/php-cgi-scripts/web1/php-cgi-starter
Action php5-cgi /php5-cgi
AddHandler php5-cgi .php .php3 .php4 .php5
<Directory /var/www/php-cgi-scripts/web1/>
Order allow,deny
Allow from all
</Directory>


</VirtualHost>