Skip to content

Cannot see static index.html pointing to directory (e.g. http://localhost/docs/) #620

Answered by ManuDoni
ManuDoni asked this question in Q&A
Discussion options

You must be logged in to vote

This is my solution:
I copied the Caddyfile stub and modified the php_server directive this way:

php_server {
    index frankenphp-worker.php
    # Required for the public/storage/ directory...
    resolve_root_symlink
    # Required to serve index.html using only the folder
    try_files {path} {path}/index.html {path}/index.php frankenphp-worker.php
}

I only added the try_files {path} {path}/index.html {path}/index.php frankenphp-worker.php

Then i set my Caddyfile using the --caddyfile option of the php artisan octane:start command

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ManuDoni
Comment options

@ManuDoni
Comment options

@ManuDoni
Comment options

Answer selected by ManuDoni
@ManuDoni
Comment options

@dunglas
Comment options

@ManuDoni
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants