LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   404 Problem with rewrite_engine (https://www.linuxquestions.org/questions/linux-newbie-8/404-problem-with-rewrite_engine-838407/)

Helstedxd 10-15-2010 07:57 PM

404 Problem with rewrite_engine
 
Hi everyone

I am trying to install xmoovStream on my server.
when i open xshelper i says:
Code:

The Apache rewrite_engine module or other URL rewriting equivalent should be enabled for nice urls
so i googled around and found i could use the command:
Code:

a2enmod rewrite
, then i get "Module rewrite already enabled", then i googled som more and found out that i should edit the /etc/apache2/sites-available/default file from
Code:

...
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
...

To:
Code:

...
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
...

then i go to xshelper/ and now i get a error 404 error, but i can still access my main page, that dont uses .htaccess

how to fix this?

//Helstedxd

joec@home 10-15-2010 10:52 PM

This is always the most hated answer, begin by debugging /etc/hosts and /etc/sysconfig/network.

Helstedxd 10-16-2010 04:07 AM

as you may know, this is the newbie forum, and i don't know how to debug them? :I

bathory 10-16-2010 04:14 AM

You should post the .htaccess.
Also you might take a look at apache logs to see what page it's trying to retrieve and gives the 404 error.

Regards

Helstedxd 10-16-2010 04:26 AM

nvm i found the error -.-' it was an error in rewritebase thanks anyway

joec@home 10-16-2010 07:46 PM

Quote:

Originally Posted by Helstedxd (Post 4129335)
as you may know, this is the newbie forum, and i don't know how to debug them? :I

First you would want to setup an A record in DNS that is not going to be a website, such as myserver.mydomain.com. Never use www.mydomain.com or any web hosting sub domain as it will cause problems down the road. This should point to the primary (first) IP address mounted on the server.

Code:

myserver.mydomain.com. IN A 12.34.56.78
The setup /etc/hosts

Code:

127.0.0.1    localhost.localdomain    localhost
::1          localhost6.localdomain6  localhost6
12.34.56.78  myserver.mydomain.com    myserver

Once completed then reboot the server, this is one of the few events that Linux needs to be rebooted. Even if you do not have problems now and everything is working it is still a good idea to go through these steps. If will save you tons of headaches down the road.


All times are GMT -5. The time now is 02:38 AM.