Free webservice is provided to every user.
You can configure your quota, set up virtualhosts on the haxmin panel.
The haxmin panel is available at https://hax.tor.hu/haxmin/
Warning: First, please create a documentroot for your planned virtualhost,
for example: /home/whatever/www/whatever.shell.tor.hu
A script is periodically checking to see if the documentroot exists.
If it is missing, your virtualhost will be removed from the database.
ATTENTION: On the new server, there are two webservers. There is apache
just like before, but there is also nginx to serve static files.
Hostnames and IPs go like this:
example.shell.tor.hu = 94.125.248.245 (Apache) - Dynamic
example.static.tor.hu = 94.125.248.244 (NGinx) - Static
You can use any domain under shell.tor.hu and static.tor.hu, if you
do not have your own domain name yet.
If you have a domain, please use a CNAME record of "shell.shelltor.com".
[ Nginx, static webhosting ]
Nginx is best for serving bigger downloads, generated webpages, static content.
It is reliable, fast, and very effective in using its resources. If your site
has over 5000 visitors / day, it is advised that you refer to static
resources on a separate static vhost.
So instead of:
You could put 'images' on a different virtualhost and refer to it as such:
File permissions: nginx does not change to your user ID, so you will have
to let it in your home directory so it can access the resources. You can
still avoid other shell users from listing or directly reading your static
files, by chmodding your static documentroot as g-rwx,o+rx.
That way, other users in the 'hax' group (everyone is in that) can't access
the directory, but nginx can.
[ Apache ]
Allowed in .htaccess: Options, FileInfo, AuthConfig, Limits, RewriteEngine
Enabled modules: PHP, Headers
[ PHP settings ]
For these virtualhosts, PHP is enabled. Safe mode is turned off.
Scripts (and the webserver fork itself) runs under your shell uid/gid.
So yeah, unless you want others to access your shellaccount, make
sure the server side scripts are secure.
The PHP session/upload/tmp directory is /home/[username]/tmp
Have it created if you want file uploads and sessions to work properly.
[ CGI scripts ]
To use Perl or Python or Ruby, you need to enable CGI execution.
Options +ExecCGI
AddHandler cgi-script .cgi .pl
AddHandler cgi-script .py
And of course don't forget to chmod the files to be executable.
Example of the above can be found in /home/test/www/test.shell.tor.hu
[ Webhosting for your domain on shell.tor.hu ]
If you want to move your domain to this server, for your DNS records
set an rdtype of CNAME, pointing to shell.tor.hu. Alternatively you
can use an A record pointing to 94.125.248.245
For static hosting, point the hostname to 94.125.248.244
[ Free shell.tor.hu subdomains ]
If you do not have a domain name yet, you can use any shell.tor.hu
subdomain, as *.shell.tor.hu points to 94.125.248.245 already.
For static hosting, use *.static.tor.hu - it points to 94.125.248.244
[ Shorter, tor.hu subdomains ]
If you want to use a tor.hu subdomain (instead of shell.tor.hu), write
e-mail to hax@tor.hu with the requested subdomain, and a brief description
of what the site will be about. I will most likely give you the subdomain.
[ Weblogs ]
You can read your web logs for Apache under /weblog/username/
[ Performance, integrity, flood protection ]
There is a limit to maximum simultaneous connections to the webserver.
It is currently set to max 5 open connections / IP address.
[ Sending E-mails, mail() ]
So with so many users, the plox.tor.hu IP can get banned from certain
e-mail servers, get listed on RBL's, etc. We do our best to combat
spam and abuse, but sometimes that is not enough and they will just list
our IP and never send a header to work with. If sending e-mails is critical
for your website and there's actually some cool purpose it serves, you
may request a separate SMTP account on a different server. If we decide
to give you one, a few things change: instead of simply using mail() you
will have to use will have to authenticate to a remote server through SMTP.
[ Common mistakes ]
- Using user.tor.hu for a domain name. It should be user.shell.tor.hu
- Expecting it to work immediately. Allow up to 2 minutes.
- Entering a non-existant domain for servername - it has to exist
- Using a servername that doesn't point to shell.tor.hu
- Using a servername that points to 94.125.248.43 instead of 94.125.248.245
- Non-existant documentroot directory
- Creating the vhost first, then the documentroot directory
- Wrong directory permissions on the documentroot
- Wrong directory permissions leading to the docroot (like /home/username)
If you need a custom set-up, special settings, or anything you can't
do using the haxmin panel, send e-mail to info@shelltor.com