Skip to main content

Thread: Changing Apache directory


so i'm setting web server in ubuntu, , want change root directory of website /var/www /home/vignesh/website-www. followed instructions
html code:
<a href="http://www.ajopaul.com/2010/05/01/ubuntu-apache2-change-default-documentroot-varwww/">here</a>
, i'm not entirely sure if worked, came piece of code looked error

code:
  * restarting web server apache2                                                 apache2: not reliably determine server's qualified domain name, using 127.0.1.1 servername  ... waiting apache2: not reliably determine server's qualified domain name, using 127.0.1.1 servername
it changed website attached, compared standard "it works!" webpage seeing prior root directory move attempt.

over-worrying here or not quite right?

oh , here edited default document
code:
<virtualhost *:80>     serveradmin webmaster@localhost      documentroot /home/vignesh/website-www/     <directory /home/vignesh/website-www/>         options followsymlinks         allowoverride none     </directory>     <directory /home/vignesh/website-www/>         options indexes followsymlinks multiviews         allowoverride none         order allow,deny         allow     </directory>      scriptalias /cgi-bin/ /usr/lib/cgi-bin/     <directory "/usr/lib/cgi-bin">         allowoverride none         options +execcgi -multiviews +symlinksifownermatch         order allow,deny         allow     </directory>      errorlog ${apache_log_dir}/error.log      # possible values include: debug, info, notice, warn, error, crit,     # alert, emerg.     loglevel warn      customlog ${apache_log_dir}/access.log combined      alias /doc/ "/usr/share/doc/"     <directory "/usr/share/doc/">         options indexes multiviews followsymlinks         allowoverride none         order deny,allow         deny         allow 127.0.0.0/255.0.0.0 ::1/128     </directory>  </virtualhost>
attached images attached images

did put index.html directory (/home/vignesh/website-www)?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Changing Apache directory


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues