Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighttpd.conf don't rewrite if file exists #12

Open
Vinze opened this issue Mar 24, 2014 · 1 comment
Open

Lighttpd.conf don't rewrite if file exists #12

Vinze opened this issue Mar 24, 2014 · 1 comment

Comments

@Vinze
Copy link

Vinze commented Mar 24, 2014

Instead of excluding files from the rewrite with regexes you could also use url.rewrite-if-not-file instead of url.rewrite-once.

For example:

$HTTP["host"] =~ "my-domain.com$" {
        server.document-root = "/var/www/my-domain.com/public/"
        accesslog.filename = "/var/www/my-domain.com/app/storage/logs/lighttpd-access.log"

        alias.url = ()
        url.redirect = ()
        url.rewrite-if-not-file = (
                "^/[^\?]*(\?.*)?$" => "index.php/$1"
        )
}
@Vinze
Copy link
Author

Vinze commented Mar 24, 2014

Never mind, I didn't see the following pull request (#10) which is exactly the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant