I can't fix the MOD_REWRITE REQUIRED

Christopher Enríquez Posted in Technical Support 4 years ago

I'm stuck in this.

image with problem

I have module loaded and configured....

Someone, any idea?

Replies
Indonesian Arsalan Shah Replied 4 years ago

As mentioned about zet-man the issue seems not related to OSSN. You either need to contact your hosting provider / post on centos forum/ or try to search how to install ossn on centos (on google).

German Michael Zülsdorff Replied 4 years ago

Well,
this may sound a little silly, but if your TV doesn't work anymore because of a power failure you wouldn't call the TV manufacturer, right?
That said is, having a working rewrite on your server is apache related - and that's why I would try getting some help from an apache community.

cl Christopher Enríquez Replied 4 years ago

~Z~ Man Hi!, "Please understand that this forum is dedicated to Ossn and not server related issues"... wops!, exist other place?

Best Regards!

German Michael Zülsdorff Replied 4 years ago

A working installer is available at https://github.com/themattbook/ossninstaller

You don't need to run that script, but looking inside you'll find all necessary steps and it comes with a sample apache config file included.

Please understand that this forum is dedicated to Ossn and not server related issues.

cl Christopher Enríquez Replied 4 years ago

Arsalan, I put www.example.com in my host file (redirecting to 127.0.0.1...

Now I try with putting the IP, i have the same results....

<VirtualHost *:80>
ServerName 172.16.177.70
ServerAlias 172.16.177.70
ServerAdmin [email protected]
DocumentRoot /var/www/html

<Directory /var/www/html>
    Options -Indexes +FollowSymLinks
    AllowOverride All
</Directory>

ErrorLog /var/log/httpd/example.com-error.log
CustomLog /var/log/httpd/example.com-access.log combined

</VirtualHost>

Indonesian Arsalan Shah Replied 4 years ago

Make sense because example.com is not a valid domain. Mod rewrite is based on checking valid DNS entry/ resolution. Make sure your DNS resolves correctly.

You may try to use atual ip of server then using fake domain name.

cl Christopher Enríquez Replied 4 years ago

vhost.conf:

<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin [email protected]
DocumentRoot /var/www/html

<Directory /var/www/html>
    Options -Indexes +FollowSymLinks
    AllowOverride All
</Directory>

ErrorLog /var/log/httpd/example.com-error.log
CustomLog /var/log/httpd/example.com-access.log combined

</VirtualHost>