
18th August 2012, 15:08
|
|
Senior Member
|
|
Join Date: Jul 2011
Location: Switzerland
Posts: 151
Thanks: 21
Thanked 44 Times in 31 Posts
|
|
~webxy support for temp. website access
Hello!
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.
Regards,
Michel
|

18th August 2012, 15:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,193 Times in 3,211 Posts
|
|
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.
|

18th August 2012, 16:07
|
|
Senior Member
|
|
Join Date: Jul 2011
Location: Switzerland
Posts: 151
Thanks: 21
Thanked 44 Times in 31 Posts
|
|
Hi till
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.
Quote:
|
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.
|
That's true...hmm.
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!
|

18th August 2012, 16:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,193 Times in 3,211 Posts
|
|
Over traffic sites get disabled by ispconfig, so if your plugin detects disabled sites already, then it will work with overtraffic as well.
|

18th August 2012, 19:32
|
|
Senior Member
|
|
Join Date: Jul 2011
Location: Switzerland
Posts: 151
Thanks: 21
Thanked 44 Times in 31 Posts
|
|
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:
- http://server.tld/~web(ID)
and supports:
- 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
http://slug.li/p
|

18th August 2012, 20:21
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
http://bugtracker.ispconfig.org/inde...s&task_id=2382
Of course this will be optional (if not filled out, it's not used). I expect this to be finished ~next week.
|

18th August 2012, 20:31
|
|
Senior Member
|
|
Join Date: Jul 2011
Location: Switzerland
Posts: 151
Thanks: 21
Thanked 44 Times in 31 Posts
|
|
Quote:
Originally Posted by Croydon
|
Oh WOW, didn't know this. But seems much better than using "userdirs" (like the plugin does).
Edit: Per-site activation/deactivation was added
Edit2: Added the wiki: https://github.com/Rackster/ispconfig3-userdir/wiki
Last edited by MaddinXx; 18th August 2012 at 23:08.
|

19th August 2012, 10:17
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
Quote:
Originally Posted by MaddinXx
Oh WOW, didn't know this. But seems much better than using "userdirs" (like the plugin does).
|
It's now active in svn.
|
|
The Following 3 Users Say Thank You to Croydon For This Useful Post:
|
cfoe (19th August 2012),
falko (20th August 2012),
till (19th August 2012)
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 23:48.
|
|
Recent comments
18 hours 55 sec ago
1 day 42 min ago
1 day 4 hours ago
1 day 6 hours ago
1 day 14 hours ago
2 days 4 min ago
2 days 54 min ago
2 days 4 hours ago
2 days 8 hours ago
2 days 9 hours ago