Gentlemen, When logged in as admin on the tab "SITES" you will see "Redirect" and "Options" At the moment I don't use this because I din't know how and I don't want to mess-up my server But I want to learn so what can Redirect do for me ? and what about the flags ? how to use the field "Directives" in the Options tab ?
Redirect: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html Directives: You can put any apache directive there that is allowed within a vhost: http://httpd.apache.org/docs/2.2/
This is explained quite quickly: There are two redirection possibilities. redirect to an other domain Just set the type to "no flag" and the path to "http://www.myotherdomain.com". redirect to a subfolder Let's say you have www.example.com as a domain and you do not want to use the /web/ folder but the /web/exfolder/ for your data. visible redirect Choose R or R,L as type and enter /exfolder/ into the path field. Anyone calling www.example.com will be redirected to www.example.com/exfolder/ and this will be visible in the browser's address bar hidden redirect Choose no flag or L as type and enter /exfolder/ into the path field. It works the same as above with the difference that the user will still see www.example.com in the address bar. oups till, you were faster
@ Croydon, Thank you for your explanation and if I understand you I don't need to redirect. I have two domains and they will have different content. Maybe in future if I install "Joomla" in a folder named "joomla" and I want my visitors to visit something.org instead of someting.org/joomla PS maybe you can explain "quite quickly" what to do with the field "Directives" in the Options tab ? I liked your explanation in dummy language for redirect
Well, I don't think this is as easy as explaining redirect In short: you can put everything there that is allowed in a virtual host section inside the apache config. Examples for directives (taken from the apache config generated by ispconfig): Code: ErrorLog /var/log/ispconfig/httpd/test.de/error.log ErrorDocument 400 /error/400.html ErrorDocument 401 /error/401.html ErrorDocument 403 /error/403.html ErrorDocument 404 /error/404.html ErrorDocument 405 /error/405.html ErrorDocument 500 /error/500.html ErrorDocument 503 /error/503.html Code: <Directory /var/www/clients/client0/web1/web> Options FollowSymLinks AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all <Files ~ '.php[s3-6]{0,1}$'> Order allow,deny Deny from all Allow from none </Files> </Directory> Code: # suexec enabled SuexecUserGroup web8 client1 # php as fast-cgi enabled <Directory /var/www/xxxxxxxxxx/web> AddHandler fcgid-script .php .php3 .php4 .php5 FCGIWrapper /var/www/php-fcgi-scripts/web8/.php-fcgi-starter .php Options +ExecCGI AllowOverride all Order allow,deny Allow from all </Directory> You see it's really not easy to explain everything possible there
@ Croydon, I think I better leave this one alone ! I have a other question. When finished installing my server ( at this moment there are no clients or websites ) I made a phpinfo.php file and it showed a lot and also information about Apache. Now I have 2 clients ( me and my son ) with 3 websites and I copy the phpinfo.php file to the websites and now no Apache information ?