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










share|improve this question
























  • 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















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










share|improve this question
























  • 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













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










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?