V
V
Vladimir Krylov2016-03-04 17:04:33
symfony
Vladimir Krylov, 2016-03-04 17:04:33

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>

In this case, when I request 192.168.1.200, I get everything correctly,
but 192.168.1.200 is needed for the NAS's web interface.
I looked in the direction of mod_rewire, but then I read on the site that these are crutches.
How to achieve this structure: 192.168.1.200/project ? So that each site is in its own folder.
Thank you, I've been standing in one place for 4 days now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2016-03-04
@skobkin

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 question

Ask a Question

731 491 924 answers to any question