Status
Not open for further replies.

feronso

Active Member
208
2009
18
0
Hi,

I have enable the rewrite module in apache 2.2.23.

in httpd.conf file i already change the "AllowOverride None" to "AllowOverride All".

My all website host in /home/domain.com/public_html
but in httpd.conf have default root and document directory is
<Directory "/var/www/html"> and DocumentRoot "/var/www/html" as well.

I make a separate file for all my virtualhost website called vhost.conf


EDIT: OK, That issue itself with wordpress. as well i forget to add AllowOverride All in the virtual host. basically it was a plugin issue and i thought this was the issue in rewrite module of apache.

Here is the virtualhost settings

Code:
NameVirtualHost 1.1.1.1:80

<VirtualHost 1.1.1.1:80>
DocumentRoot /home/domain.com/public_html
<Directory "/home/domain.com/public_html">
allow from all
Options +Indexes
</Directory>
ServerName domain.com
ServerAlias www.domain.com
ErrorLog /home/domain.com/logs/error.log
LogLevel emerg
CustomLog /home/domain.com/logs/access.log "combined"
</VirtualHost>
I try this on wordpress simple URLs. adding "AllowOverride All" in VirtualHost just fix the "No Found" error. but still page won't open and showing "Wordpress page not found error".


Without adding "AllowOverride All" in VirtualHost of domain.com it given this error

Not Found

The requested URL /about-us.html was not found on this server.
Apache/2.2.23 (CentOS) Server at www.domain.com Port 80


EDIT: it was a plugin bug, called .html pages of wordpress. by deleting plugin. all things back normal as well i add the AllowOverride All in virtualhost directory for AllowOverride main httpd.conf.
 
Last edited:
Status
Not open for further replies.
Back
Top