Skip to main content

Thread: apache index of / cgi-bin/


hello,

have apache2 server hosts multiple websites using sites-available/sites-enabled. if goto myaddress.com, index of / page. want page redirect www.myaddress.com. tried using method stated on http://serverfault.com/questions/120...he-virtualhost neither method work.

appreciated.

thanks,

why not make either name work?

within virtualhost

servername www.myaddress.com
serveralias myaddress.com

use mod_rewrite in .htaccess, if allowoverride not all, have include fileinfo. using .htaccess files can slow down server vs. putting directives in server configuration. http://httpd.apache.org/docs/2.4/mod...#allowoverride

link shows how use virtual host redirect unwanted names without having use mod_rewrite, or how use mod-rewrite if want to: http://httpd.apache.org/docs/2.4/rew...#canonicalhost


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] apache index of / cgi-bin/


Ubuntu

Comments

Popular posts from this blog

Is this Captcha code corrupt?

How to Grab email address from webform and insert into form action

Thread: lower arc in openoffice draw