jeudi 28 avril 2016

How to put an another website alongside laravel?

I have a laravel installation on my apache webserver. However, since I configured the server to work with laravel, I can't put another web sites of other PHP frameworks or such alongside laravel. Virtual host configuration in my /etc/httpd/conf/httpd.conf file on my centOS 7 machine was enough to configure my laravel site:

<VirtualHost *:80>
        ServerName sdu.laravelnew.com
        DocumentRoot /var/www/html/sdulibrary/public

        <Directory /var/www/html/sdulibrary>
                AllowOverride All
        </Directory>
</VirtualHost>

But the problem here is that, I can't add new websites into this directory (/var/www/html) anymore. I would like to access my new websites to this directory for example /var/www/html/my-new-site and I would like to access them like this my-ip-address/my-new-site.

I hope I could explain my problem well. I am using Laravel 5 and I am on my CentOS 7 machine.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/21gqqvM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire