multiple laravel site on one VPS
up vote
-1
down vote
favorite
I need to host more than one laravel site on the same virtual machine that is on a server of ovh.
I take this project it from another man that go away and i can talk with him,anyway is configuration is:
/var/www/html/site1
(apache under ubuntu server 18)
inside the laravel's public folder I found the .htaccess with this on it:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
And there is no more .htaccess file around...on www or public_html for example
Hosts dont seems to be touched there is only the vpS name on it.
Now if I visiti the
vpnUrl.com
i can see the home of site1 as espected.
Wich one is the best way to move to a configuration like:
- urlvpn.com/site1
- urlvpn.com/site2
- urlvpn.com/siteN
laravel apache .htaccess ovh
add a comment |
up vote
-1
down vote
favorite
I need to host more than one laravel site on the same virtual machine that is on a server of ovh.
I take this project it from another man that go away and i can talk with him,anyway is configuration is:
/var/www/html/site1
(apache under ubuntu server 18)
inside the laravel's public folder I found the .htaccess with this on it:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
And there is no more .htaccess file around...on www or public_html for example
Hosts dont seems to be touched there is only the vpS name on it.
Now if I visiti the
vpnUrl.com
i can see the home of site1 as espected.
Wich one is the best way to move to a configuration like:
- urlvpn.com/site1
- urlvpn.com/site2
- urlvpn.com/siteN
laravel apache .htaccess ovh
vpn is a virtual private network, not a virtual machine. System administration is off topic for SO. You may want to consult with a real sysadmin if you're trying to run your own VM for professional purposes.
– Devon
Nov 12 at 16:26
sorry to no be helpful, but if you're using laravel move it to nginx. It's super easy and you can add websites much easier. I have a WM for testing with 6 websites running in parallel. Anyways i would move this to server fault.
– Indra
Nov 12 at 16:34
u both right it was vps... sorry for confusion
– JahStation
yesterday
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I need to host more than one laravel site on the same virtual machine that is on a server of ovh.
I take this project it from another man that go away and i can talk with him,anyway is configuration is:
/var/www/html/site1
(apache under ubuntu server 18)
inside the laravel's public folder I found the .htaccess with this on it:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
And there is no more .htaccess file around...on www or public_html for example
Hosts dont seems to be touched there is only the vpS name on it.
Now if I visiti the
vpnUrl.com
i can see the home of site1 as espected.
Wich one is the best way to move to a configuration like:
- urlvpn.com/site1
- urlvpn.com/site2
- urlvpn.com/siteN
laravel apache .htaccess ovh
I need to host more than one laravel site on the same virtual machine that is on a server of ovh.
I take this project it from another man that go away and i can talk with him,anyway is configuration is:
/var/www/html/site1
(apache under ubuntu server 18)
inside the laravel's public folder I found the .htaccess with this on it:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
And there is no more .htaccess file around...on www or public_html for example
Hosts dont seems to be touched there is only the vpS name on it.
Now if I visiti the
vpnUrl.com
i can see the home of site1 as espected.
Wich one is the best way to move to a configuration like:
- urlvpn.com/site1
- urlvpn.com/site2
- urlvpn.com/siteN
laravel apache .htaccess ovh
laravel apache .htaccess ovh
edited yesterday
asked Nov 12 at 16:16
JahStation
1731415
1731415
vpn is a virtual private network, not a virtual machine. System administration is off topic for SO. You may want to consult with a real sysadmin if you're trying to run your own VM for professional purposes.
– Devon
Nov 12 at 16:26
sorry to no be helpful, but if you're using laravel move it to nginx. It's super easy and you can add websites much easier. I have a WM for testing with 6 websites running in parallel. Anyways i would move this to server fault.
– Indra
Nov 12 at 16:34
u both right it was vps... sorry for confusion
– JahStation
yesterday
add a comment |
vpn is a virtual private network, not a virtual machine. System administration is off topic for SO. You may want to consult with a real sysadmin if you're trying to run your own VM for professional purposes.
– Devon
Nov 12 at 16:26
sorry to no be helpful, but if you're using laravel move it to nginx. It's super easy and you can add websites much easier. I have a WM for testing with 6 websites running in parallel. Anyways i would move this to server fault.
– Indra
Nov 12 at 16:34
u both right it was vps... sorry for confusion
– JahStation
yesterday
vpn is a virtual private network, not a virtual machine. System administration is off topic for SO. You may want to consult with a real sysadmin if you're trying to run your own VM for professional purposes.
– Devon
Nov 12 at 16:26
vpn is a virtual private network, not a virtual machine. System administration is off topic for SO. You may want to consult with a real sysadmin if you're trying to run your own VM for professional purposes.
– Devon
Nov 12 at 16:26
sorry to no be helpful, but if you're using laravel move it to nginx. It's super easy and you can add websites much easier. I have a WM for testing with 6 websites running in parallel. Anyways i would move this to server fault.
– Indra
Nov 12 at 16:34
sorry to no be helpful, but if you're using laravel move it to nginx. It's super easy and you can add websites much easier. I have a WM for testing with 6 websites running in parallel. Anyways i would move this to server fault.
– Indra
Nov 12 at 16:34
u both right it was vps... sorry for confusion
– JahStation
yesterday
u both right it was vps... sorry for confusion
– JahStation
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266117%2fmultiple-laravel-site-on-one-vps%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
vpn is a virtual private network, not a virtual machine. System administration is off topic for SO. You may want to consult with a real sysadmin if you're trying to run your own VM for professional purposes.
– Devon
Nov 12 at 16:26
sorry to no be helpful, but if you're using laravel move it to nginx. It's super easy and you can add websites much easier. I have a WM for testing with 6 websites running in parallel. Anyways i would move this to server fault.
– Indra
Nov 12 at 16:34
u both right it was vps... sorry for confusion
– JahStation
yesterday