Code Monkey home page Code Monkey logo

Comments (8)

dstapp avatar dstapp commented on July 26, 2024

Did you try setting AllowOverride to all in order for mod_rewrite to work correctly?

from vagrant-catalog.

gsaslis avatar gsaslis commented on July 26, 2024

I did (and, by doing so, i found that it was originally disabled), but even
after enabling

a2enmod rewrite

and setting AllowOverride to all, i still couldn't get the link to work...
still same error...

Is there a list of requirements somewhere (e.g. any other apache modules I
need to have enabled, etc) ?

from vagrant-catalog.

ross-p avatar ross-p commented on July 26, 2024

Make sure you restart Apache after you set AllowOverride All.

My httpd.conf looks like this for my virtualhost, very similar to yours but I have "AllowOverride All"

The only other thing that comes to mind is that all the rewrite rules are in an .htaccess file, so if there is some server config that allows .htaccess files, make sure that is enabled.

<VirtualHost *:80>
    ServerName  vagrant.example.com
    ServerAdmin [email protected]
    DocumentRoot /var/www/vagrant.example.com/
    ErrorLog "| /usr/sbin/rotatelogs /var/log/apache2/vagrant.example.com.error_log 300"
    CustomLog "| /usr/sbin/rotatelogs /var/log/apache2/vagrant.example.com.combined_log 300" vhost_combined
    <Directory /var/www/vagrant.example.com/>
        AllowOverride All
    </Directory>
</VirtualHost>

from vagrant-catalog.

gsaslis avatar gsaslis commented on July 26, 2024

Thanks Ross, will try to look into the .htaccess rewrites when I get some
time... Thanks anyway!

On 6 March 2015 at 12:48, Ross Perkins [email protected] wrote:

Make sure you restart Apache after you set AllowOverride All.

My httpd.conf looks like this for my virtualhost, very similar to yours
but I have "AllowOverride All"

The only other thing that comes to mind is that all the rewrite rules are
in an .htaccess file, so if there is some server config that allows
.htaccess files, make sure that is enabled.

ServerName vagrant.example.com
ServerAdmin [email protected]
DocumentRoot /var/www/vagrant.example.com/
ErrorLog "| /usr/sbin/rotatelogs
/var/log/apache2/vagrant.example.com.error_log 300"
CustomLog "| /usr/sbin/rotatelogs
/var/log/apache2vagrant.example.com.combined_log 300" vhost_combined

AllowOverride All


Reply to this email directly or view it on GitHub
#1 (comment).

from vagrant-catalog.

ross-p avatar ross-p commented on July 26, 2024

I'm going to create a new feature issue saying to make a full end-to-end example of this, and I'll include things like necessary Apache configs there, and close this issue.

from vagrant-catalog.

gsaslis avatar gsaslis commented on July 26, 2024

sure - that sounds great! 👍

On 10 March 2015 at 19:04, Ross Perkins [email protected] wrote:

I'm going to create a new feature issue saying to make a full end-to-end
example of this, and I'll include things like necessary Apache configs
there, and close this issue.


Reply to this email directly or view it on GitHub
#1 (comment).

from vagrant-catalog.

ross-p avatar ross-p commented on July 26, 2024

@gsalis https://github.com/xclusv/vagrant-boxer-example

from vagrant-catalog.

gsaslis avatar gsaslis commented on July 26, 2024

great stuff! I'll check it out as soon as I find some time over the next week or so! Thanks!

from vagrant-catalog.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.