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

DefaultDocument target must exist, even in RepoAuthoritative mode #1301

Closed
fredemmott opened this issue Nov 26, 2013 · 6 comments
Closed

DefaultDocument target must exist, even in RepoAuthoritative mode #1301

fredemmott opened this issue Nov 26, 2013 · 6 comments

Comments

@fredemmott
Copy link
Contributor

Took me a while to figure this out

  1. Write an index.php file
  2. Build bytecode cache for this index.php
  3. hhvm -vDefaultDocument=index.php -vRepo.Central.Path=$(pwd)/hhvm.hhbc -vRepo.Authoritative=true -m server -p 8080
  4. Go to http://host:8080, get 'not found'
  5. 'touch index.php' and re-start hhvm, exactly as before
  6. index.php in hhvm.hhbc now executes when going to http://host:8080
@karpa13a
Copy link

dupe of many)

@fredemmott
Copy link
Contributor Author

@karpa13a: could you provide a reference to the canonical one please? I'm not seeing anything that's obviously the same in issues tagged 'documentation', 'duplicate', or 'wontfix'.

@karpa13a
Copy link

#737
m?

@scannell
Copy link
Contributor

@karpa13a is right. The prognosis hasn't changed -- not on the priority list at the moment. Feel free to submit a patch if you (or someone else reading this) gets to it before we do; work on the builtin webserver has pretty much stopped due to FastCGI.

@gajime
Copy link

gajime commented Jan 22, 2014

This may be a performance issue if you consider hhvm is obviously checking if the file exists -> disk i/o

By the way, this existing check occurs for every file! Even if 'Authoritative = true' prevents from interpreting the file.

@ptarjan
Copy link
Contributor

ptarjan commented Apr 15, 2014

I'm closing tasks related to the deprecated webserver. Please use fastcgi.

@ptarjan ptarjan closed this as completed Apr 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants