[Resolved] Index not being processed

Status
Not open for further replies.

innovot

Well-Known Member
#1
Hello:

am testing a wordpress site and the friendly names work fine but when going to the root directory index.php is not being processed. Am using Apache configuration files and not native LSWS.

Thoughts please ?
 

mistwang

LiteSpeed Staff
#2
Are you using a control panel? cPanel? plesk? Directadmin? customized?
I assume the index.php works for Apache, right? Any customization to .htaccess?
 

innovot

Well-Known Member
#3
No control panel and Apache works fine with

Code:
<VirtualHost *:80>
    ServerAdmin noc@domain.co.uk

    ServerName  www.domain.co.uk
    ServerAlias domain.co.uk

    RewriteCond %{HTTP_HOST} !=www.domain.co.uk
    RewriteRule ^ http://www.domain.co.uk%{REQUEST_URI} [R=301,L]

    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]

    DocumentRoot /www/www.domain.co.uk/wordpress
    ErrorLog logs/www.domain.co.uk.error.log
    CustomLog logs/www.domain.co.uk.access.log combined env=!dontlog

    <Directory /www/www.domain.co.uk/wordpress>
       Options FollowSymLinks
       AllowOverride all
       Require all granted
    </Directory>
</VirtualHost>
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#4
You need to let LiteSpeed read httpd.conf instead of a virtual host configuration file or a configuration file included by httpd.conf. The "DirectoryIndex .." configuration is not present in the vhost configuration, it must be inherit from Global/Default vhost configuration.
 
Status
Not open for further replies.
Top