Skip to content

Instantly share code, notes, and snippets.

@GrapsasFilippos
Forked from trinvh/Sentora vhost + Laravel
Created November 13, 2018 21:28
Show Gist options
  • Save GrapsasFilippos/1ac891ca1f1865fc9017bb1995abe136 to your computer and use it in GitHub Desktop.
Save GrapsasFilippos/1ac891ca1f1865fc9017bb1995abe136 to your computer and use it in GitHub Desktop.
1. Go to Module Admin.
2. Click Apache Config.
3. Scroll to bottom, look at "Override a Virtual Host Setting" section, select your vhost from dropdowns.
4. In "Custom Entry" field, paste the following code:
`DocumentRoot "/var/sentora/hostdata/[username]/public_html/[domain-alias]/public"`
Replace [username] with your login username, and [domain-alias] with your domain directory friendly name (domain.com => domain_com).
5. "Save Host" and waiting for Sentora Daemon, or from terminal, reload httpd service:
`php -q /etc/sentora/panel/bin/daemon.php`
`service httpd restart`
6. Done !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment