Hi, I made website alias, but it is not working as expected. Domain with www is ok, but when accessed without www ig gives 400 Bad request error. Bad Request Your browser sent a request that this server could not understand. Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request. Domains are http://azzurromilano.es/ and http://www.azzurromilano.es/ Does anybody know why it is happening ?
Make sure that you created the website alias for azzurromilano.es and not www.azzurromilano.es/ and that you activated auto subdomain "www" in the alias domain settings.
Hello, I attached the image with settings, it seems it is ok. (Notjing change if I set www instead of * for auto subdomain)
Normally you should not use auto subdomain * as this can cause domains to fail, please use auto subdomain www instead. Auto subdomain * is only used if you use a multidomain cms system like wordpress-mu. The same applies to the main website(s). Make sure that you waited a few minutes so that the changes have been written to disk.
Hi, on the picture are setting that are in use for few days. I changed default subdomain to www, manually run /usr/local/ispconfig/server/server.sh but nothing changed
Where should I look for error message, in which log file ? I tried in /var/www/domainname/logs/error_log /var/log/httpd/error_log but there is nothing about this
Hi, sorry for late response. Here is my configuration: Code: <Directory /var/www/revia.si> AllowOverride None Order Deny,Allow Deny from all </Directory> <VirtualHost 188.40.96.210:80> DocumentRoot /var/www/revia.si/web ServerName revia.si ServerAlias *.revia.si ServerAlias www.azzurromilano.es azzurromilano.es # ServerAlias *.revia.eu revia.eu ServerAdmin [email protected] ErrorLog /var/log/ispconfig/httpd/revia.si/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/revia.si/web> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <Directory /var/www/clients/client1/web20/web> Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> # Clear PHP settings of this website <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> # mod_php enabled AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]" php_admin_value upload_tmp_dir /var/www/clients/client1/web20/tmp php_admin_value session.save_path /var/www/clients/client1/web20/tmp # PHPIniDir /var/www/conf/web20 php_admin_value open_basedir /var/www/clients/client1/web20/web:/var/www/clients/client1/web20/tmp:/var/www/revia.si/web:/srv/www/revia.si/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin # add support for apache mpm_itk <IfModule mpm_itk_module> AssignUserId web20 client1 </IfModule> <IfModule mod_dav_fs.c> # DO NOT REMOVE THE COMMENTS! # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE! # WEBDAV BEGIN # WEBDAV END </IfModule> </VirtualHost>
Looks ok. Do you have an .htaccess file that might cause this? Maybe there are wrong rewrite rules in that .htaccess file.
Yes, we have .htaccess, it is standard Joomla htaccess, with some additions. I tried to remove it, but nothing happens, error is the same. Never mind, we can live with it thanks for help and time