~webxy support for temp. website access
I remember some posts here which asked for username based website access like supported by e.g. cPanel (~username).
Basically, I read that this should be possible with mod_userdir and also tried a bit with Aliases in vhosts.
My questions is now, if this feature would be appreciated and how it should logically be done.
My idea is, that ISPConfig could support it like:
http://serverurl/ip.tld/~webxx (e.g. web10).
I guess this wouldn't be a great problem to create. Or am I wrong?
If there are no concerns about this, I'd try working on this.
Such a feature could be easily used to get information which sites are hosted on a server as you just have to write a script that tries out web1, web2, etc. so I think if this feature exists, it should be disabed by default. And such a feature would have to ensure that access to websites which are disabled in ispconfig or are over traffic is not possible.
Using such a alias to test websites will not work with most cms / blog systems like e.g. wordpress, so installing wordpress over such a link would result in a broken install and accessing wordpress that has been installed under the real domain name will fail as well. So in my opinion, such a feature does not offer any real benefits as its mostly usable for plain html sites which dont use cms systems and such sites nearly dont exist anymore. Pleask has such a feature as its much older and years ago when websites were just directories full of html files, such a feature made sense.
So maybe instead of intergrating such a feature in ispconfig, it might be better to write a short tutorial on how to configure mod_userdir on a ispconfig server and inform the user about the risks that i mentioned above as thes risks cant be avoided when mod_userdir is enabled.
Yes, I thought more about a plugin than integrating it into ISPConfig itself.
For the problem with disabled sites I already have the solution, now trying if I'll find out for over-traffic ones.
I think I'll create the plugin, since I personally often use plain HTML (for whatever :)) so everyone is free to use or not use, and write a short tutorial as soon as it's ready.
This way, the ones who'd like to have this option, can enable it while others don't have to bother about it.
Thanks for your opinion!
Over traffic sites get disabled by ispconfig, so if your plugin detects disabled sites already, then it will work with overtraffic as well.
OK, great to hear.
The plugin is now ready, at least a very early version with support for:
- Create config file
- Update config file
- Delete config file
- Delete config files of client
- Disable config file
It works like:
- custom error pages
- PHP on/off
It's very basic at the moment, and I am not sure if it's very safe to use it (have to check that), but I guess it is.
Now it's writing time :)
Of course this will be optional (if not filled out, it's not used). I expect this to be finished ~next week.
Edit: Per-site activation/deactivation was added
Edit2: Added the wiki: https://github.com/Rackster/ispconfig3-userdir/wiki
|All times are GMT +2. The time now is 22:06.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.