Сайт Laravel в папке другого сайта Laravel .htaccess? - PullRequest
1 голос
/ 27 мая 2019

Я пытаюсь найти лучший способ сделать это, поэтому буду признателен за любую помощь.У меня есть основной сайт Laravel в моей папке /var/www/html.Это в значительной степени обрабатывает все, но мне нужно добавить другой проект для конкретной задачи, и я хотел бы добавить его в /var/www/html/wrettin.На данный момент у меня нет ничего в .htaccess базовой папки, поскольку все это в значительной степени обрабатывается файлом default.conf сервера Apache2.

Вот файл conf:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@me
        DocumentRoot /var/www/html/public

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
<Directory /var/www/html/public/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
</VirtualHost>

Какая конфигурация будет подходящей для того, чтобы все пути, ведущие к первичному приложению, заставляли перенаправлять те, которые идут по пути wrettin, в новое приложение?

Я быценю любую помощь!Спасибо!

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...