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

Breaks when running locally on localhost #183

Open
brentonstrine opened this issue Apr 22, 2015 · 1 comment
Open

Breaks when running locally on localhost #183

brentonstrine opened this issue Apr 22, 2015 · 1 comment

Comments

@brentonstrine
Copy link

I believe that because it uses $_SERVER['DOCUMENT_ROOT'] to get the document root, which is not the same as the web URL root, the output path for images is wrong and images break on localhost.

@ableade
Copy link

ableade commented Jan 8, 2016

Maybe try this?
$whitelist = array(
'127.0.0.1',
'::1'
);

if(!in_array($_SERVER['REMOTE_ADDR'], $whitelist)){
    // set desired document root here
}

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

2 participants