Testing Locally

From the admin/ directory:

docker compose up -d

Starts nginx on port 8080 + PHP-FPM. The deny rules are active. In production, login is at auth.nortonshop.net/login (which redirects to the admin panel at admin.nortonshop.net); locally the admin panel is accessible at http://localhost:8080/admin/.

Without Docker

PHP's built-in server with the dev router:

php -c admin/php-dev.ini -S localhost:8080 admin/dev-server.php

Test that sensitive files are blocked:

VS Code Live Server and similar tools serve all files as static content without deny rules. Never use them to serve the admin folder.
Back to top