Private Symfony on E-01: the Nginx → FPM → application path
A loopback origin, noindex and the first official skeleton response. Why Symfony 404 is expected while /.env and other PHP files remain blocked.
Private Symfony through Nginx and FPM
I first checked this path in a separate native environment: installation without development packages, cache warmup and a private Symfony response succeeded. I then performed a separate actual run on the learning E-01. It received published source for the official Symfony skeleton and installed 32 production packages. After applying the changes, a new SSH connection provided a separate readback.
A new private include
The earlier Nginx main/static configuration and systemd drop-in were preserved. However, the server configuration was extended: a separate 90-deploy-cli-symfony.conf include was added for the new private origin. One reload completed while the Nginx master PID remained unchanged. Describing all Nginx configuration as unchanged would therefore be incorrect. Existing firewall dependencies were preserved, and this step opened no public ingress.
This standard excerpt shows the new origin rather than a complete server block. It listens only on loopback and passes unknown paths to the front controller. The always parameter also adds noindex to error responses. This is an indexing instruction, not authentication: 127.0.0.1 establishes the private origin’s network boundary.
listen 127.0.0.1:8081;
add_header X-Robots-Tag "noindex, nofollow" always;
location / {
try_files $uri /index.php$is_args$args;
}
The application response
The standard curl commands repeat the read check; they are not a transcript of the actual request. Selected E-01 observations follow separately. Requests to / and /index.php returned Symfony HTTP 404 with the Oops page: the minimal skeleton has no completed homepage route. Requests to /.env and /other.php also returned 404, but as denied paths. The same status does not mean that the responses have the same origin.
curl --silent --show-error --header 'Host: e01-app.example.test' --dump-header - --output /dev/null http://127.0.0.1:8081/
curl --silent --show-error --header 'Host: e01-app.example.test' --dump-header - --output /dev/null http://127.0.0.1:8081/index.php
curl --silent --show-error --header 'Host: e01-app.example.test' --dump-header - --output /dev/null http://127.0.0.1:8081/.env
curl --silent --show-error --header 'Host: e01-app.example.test' --dump-header - --output /dev/null http://127.0.0.1:8081/other.php
{
"/": {
"status": 404,
"response": "Symfony Oops",
"noindex": true
},
"/index.php": {
"status": 404,
"response": "Symfony Oops",
"noindex": true
},
"/.env": {
"status": 404,
"response": "denied",
"noindex": true
},
"/other.php": {
"status": 404,
"response": "denied",
"noindex": true
}
}
Noindex appeared on all these responses. The Symfony 404 reaches further than builtin ping: it executes the application front controller and loads the autoloader and framework. It does not establish a content homepage, user login or a future database. The /.env request additionally checks that a private configuration file is not served as static content.
Permissions and budgets
Root owns the code while the runtime user owns mutable var data. This does not run PHP as root: the runtime reads required code and writes only to its working directories. During the build, parent and child PHP had 512M and the service had 768 MiB. Persistent FPM retained its 64M and 384 MiB limits. One private HTTP run establishes this path in the checked state, not spare capacity or readiness for a public site.
Composer install · Symfony deployment · Nginx add_header