Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to enable mod_rewrite

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
protocore
Posts: 26
Joined: Thu Sep 24, 2015 1:10 pm

How to enable mod_rewrite
  • Quote

Post by protocore » Sun Dec 13, 2015 4:55 pm

I'm having problems with mod_rewrite but I can't install because it's apache but this is nginx

How can I enable it
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: How to enable mod_rewrite
  • Quote

Post by tjebbeke » Sun Dec 13, 2015 7:46 pm

What vesta do you have? Nginx - Apache or Nginx PHP-fpm?
On Nginx-Apache should it work out of the box.
On Nginx PHP-FPM, it's not possible to work with .htaccess files. You have to change the Nginx config. You can look into the existing templates how it works.
Top

protocore
Posts: 26
Joined: Thu Sep 24, 2015 1:10 pm

Re: How to enable mod_rewrite
  • Quote

Post by protocore » Mon Dec 14, 2015 4:53 pm

How do I change it to Apache instead of nginx

If I change it will mod_rewrite work.

As I need this to work Asaph so I can carry on with a project but I'm willing to change the nginx to Apache
Top

jimmyeao
Posts: 30
Joined: Fri Nov 27, 2015 2:13 pm

Re: How to enable mod_rewrite
  • Quote

Post by jimmyeao » Mon Dec 14, 2015 6:09 pm

Code: Select all

sudo a2enmod rewrite
Once you have apached installed ;)
Im not sure, but depending on your set up it may be easier to reinstall Vesta on a clean server with the Apache+NGinx
Top

protocore
Posts: 26
Joined: Thu Sep 24, 2015 1:10 pm

Re: How to enable mod_rewrite
  • Quote

Post by protocore » Mon Dec 14, 2015 7:59 pm

jimmyeao wrote:

Code: Select all

sudo a2enmod rewrite
Once you have apached installed ;)
Im not sure, but depending on your set up it may be easier to reinstall Vesta on a clean server with the Apache+NGinx

Sorted thank you for your help
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password