Virtual servers created on operating system Linux has different properties and services across the Windows servers, which comes from the giver platform.
Below you will find the specific features and services of the Linux solution.
Usage of CGI script is only possible on servers with operating system Linux. Suppoerted are for example languages PERL, Python and Ruby.
CGI save on server to folder /www/cgi-bin/. If the script is in different folder, it has to have ending .cgi or .pl (other endings can be added by using .htaccess directive AddHandler).
File with script has to have set startup rights (for example 755).
Prior to submitting the output to the browser, the script must generate at least the output type header (classically Content-type: text / html).
Examples for each language:
PERL #!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello World!";
Python #!/usr/bin/python print "Content-type: text/html" print print "Hello World!"
Ruby #!/usr/bin/ruby puts "Content-Type: text/html" puts puts "Hello World!"
To view the error log of your own web server, visit the virtual server FTP in the /logs/ directory. Logs are especially useful when debugging a web application.
Service can be activated anytime after creation of hosting in virtual server overview. Activating and deactivating of service will be noticeable within 2 hours.
After 30 days the customer is noted about terminating of this service on contact e-mail address.
Automatic creation of 3rd order domains
Service Automatic creation of 3rd order domains and their redirection to appropriate directory is for virtual servers with OS Linux. After activation of this service is for every subdirectory in WWW root directory automatically created subdomain, which is redirected to directory of the same name.
Virtual servers on OS Windows have this function in default configuration.
If you will created directory named sell on server for domain domain.xy, the 3rd level domain will be created automatically sell.domain.xy. As soon as the new domain is written in network, it will be redirected to directory domain.xy/sell and its content will be shown.
Detailed walkt hrough:
- Desired subdomain redirect on server - How to set up DNS records?
- Set up alias on target server. You can either set up alias for specific subdomain, or use universal star symbol (*.domain.xyz).
- In root directory WWW create folder with the same name as desired subdomain.
- New subdomain will be created automatically, but it will take 2-24 hours, before the new record is written to network.