HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   ~webxy support for temp. website access (http://www.howtoforge.com/forums/showthread.php?t=58306)

MaddinXx 18th August 2012 16:08

~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

till 18th August 2012 16:36

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.

MaddinXx 18th August 2012 17:07

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!

till 18th August 2012 17:36

Over traffic sites get disabled by ispconfig, so if your plugin detects disabled sites already, then it will work with overtraffic as well.

MaddinXx 18th August 2012 20:32

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

Croydon 18th August 2012 21:21

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.

MaddinXx 18th August 2012 21:31

Quote:

Originally Posted by Croydon (Post 283905)
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

Croydon 19th August 2012 11:17

Quote:

Originally Posted by MaddinXx (Post 283906)
Oh WOW, didn't know this. But seems much better than using "userdirs" (like the plugin does).

It's now active in svn.


All times are GMT +2. The time now is 09:15.

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