When i start octane it always use this host http ://127.0.0.1:8000
, which is usable in local development, but in production environnement i use domain name instead of localhost
Is there a way to change the hostname like http ://domain.com:8000
when we start octane.
Update:
I’m using apache
Update:
I switched to Nginx so, it works better than apache. But if someone managed to resolve this in Apache feel welcome to leave your configuration.
2
Answers
You need Nginx or Apache. It’s already on Octane Documentation.
In the Nginx configuration example below file, Nginx will serve the site’s static assets and proxy requests to the Octane server that is running on port 8000:
You can change the hostname by passing the option
--host=your-host
to the octane command.