-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: add a webserver configuration example for shared hosting #331
Comments
Of cource, if you have a highload project, you have good skills and should to optimize the web server configuration anyway. The About your second config. If we set the alias, the request to |
@mickgeek , in the application that I'm developing, my running configuration simply starts with:
I think that it's unrelated. |
It does not really make much sense to restrict When we use the document root as the path to the frontend app, we need use the alias. When we use the alias, we can't manipulate the trailing slash. |
Anyway, if we talk about a shared hosting, usually we only have access to the .htaccess files. |
I think that these ideas are better. Firstly, because a typical "shared hosting" scenario doesn't have a VirtualHost context, so a pure .htaccess solution is necessary. But also because the typical "shared hosting" scenario is not the unique: one can prefer to stay in one domain enjoying the Alias recommendation by Apache. I've a couple of hints (I'm in hurry now, I cannot explore better). The $showScriptName also should be managed with some trick, depending on the context. I've found also 'AllowNoSlash' in the RewriteOptions section http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewriteoptions Have a nice day, |
We can also use |
This is related to #316.
Two proposals below.
The proposals are not strongly tested and are for Apache only (I'm not expert in nginx).
If you are interested, I can test them better, fork and propose formally. Apache only.
Regards,
HUjuice
If you have per directory permissions only (.htaccess):
If you can write a complete VirtualHost configuration and want to keep separate web directory:
Note: sorry, but the external configuration linked at the end of the document is an overkill and in contrast with the Apache recommendations. I filed a bug to Oleg about: mickgeek/yii2-advanced-one-domain-config#16
The text was updated successfully, but these errors were encountered: