Skip to content

Commit

Permalink
Fix PHP syntax in section "Run From a Sub-Directory"
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Aug 27, 2023
1 parent 2e7dc21 commit 4a4e19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/v4/start/web-servers.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ This assumes that Slim's `index.php` is in the root folder of your project (www
## Run From a Sub-Directory

If you want to run your Slim Application from a sub-directory in your Server's Root instead of creating a Virtual Host,
you can configure `$app->setBasePath('/path-to-your-app')` right after the `AppFactory::create()`.
you can configure `$app->setBasePath('/path-to-your-app');` right after the `AppFactory::create();`.
Assuming that your Server's Root is `/var/www/html/` and path to your Slim Application is `/var/www/html/my-slim-app`
you can set the base path to `$app->setBasePath('/my-slim-app')`.
you can set the base path to `$app->setBasePath('/my-slim-app');`.

```php
<?php
Expand Down

0 comments on commit 4a4e19a

Please sign in to comment.