Answer the question
In order to leave comments, you need to log in
How to deploy Symfony 3 on local server(NAS Qnap)?
Hello.
I'm deploying a symphony project on a local server (Nas Qnap).
With other sites where the index file is at the root, no problem, but here the index file is located in web/app.php.
The documentation describes how to configure under apache
<VirtualHost *:80>
ServerName domain.tld
ServerAlias www.domain.tld
DocumentRoot /var/www/project/web
<Directory /var/www/project/web>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
# uncomment the following lines if you install assets as symlinks
# or run into problems when compiling LESS/Sass/CoffeScript assets
# <Directory /var/www/project>
# Options FollowSymlinks
# </Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Please describe the problem in more detail. Here it is completely unclear what config you have compiled for the Symfony application and what exactly is going wrong.
Yes. You just need to specify in the config as the root not the project directory, but the web directory inside it.
And what should be opened at this address? Symfony application?
What server is there? Apache, Nginx, Lighttpd?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question