Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th August 2012, 15:08
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 65 Times in 48 Posts
Default ~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
Reply With Quote
Sponsored Links
  #2  
Old 18th August 2012, 15:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th August 2012, 16:07
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 65 Times in 48 Posts
Default

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!
Reply With Quote
  #4  
Old 18th August 2012, 16:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
Default

Over traffic sites get disabled by ispconfig, so if your plugin detects disabled sites already, then it will work with overtraffic as well.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th August 2012, 19:32
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 65 Times in 48 Posts
Default

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
Reply With Quote
  #6  
Old 18th August 2012, 20:21
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 262 Times in 208 Posts
Default

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.
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #7  
Old 18th August 2012, 20:31
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 65 Times in 48 Posts
Default

Quote:
Originally Posted by Croydon View Post
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.
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.
Reply With Quote
  #8  
Old 19th August 2012, 10:17
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 262 Times in 208 Posts
 
Default

Quote:
Originally Posted by MaddinXx View Post
Oh WOW, didn't know this. But seems much better than using "userdirs" (like the plugin does).
It's now active in svn.
__________________
Marius Cramer

pixcept KG
Reply With Quote
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)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission tfor a website folder & ssh/ftp access Salital Installation/Configuration 6 12th October 2011 18:15
Relay access denied (SASL support is not compiled in) yurnero Installation/Configuration 2 23rd August 2010 09:37
server Installation Configuration deco5003 Installation/Configuration 12 5th August 2009 12:00
Ispconfig update problems from 2.4 to 2.6 adrenalinic Installation/Configuration 23 7th September 2006 12:58
ISPConfig Failure on SuSe 9.3 gimhan90 Installation/Configuration 13 2nd February 2006 10:29


All times are GMT +2. The time now is 23:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.