Thread: Apache Virtual Host config file--spaces in path
hi,
followed directions here setting apache, php, , mysql. attempted creating virtual host root directory has path spaces; yet 403 forbidden errors when trying access localhost. in addition, apache won't create "index.html" file on fly site.
tried creating site root directory path has no spaces; , apache , php work fine. index.html file created on fly well.
here config code site that won't work:
here code site works:code:<virtualhost *:80> serveradmin webmaster@localhost documentroot "/home/vance/aptana studio 3 workspace/testingspacesphp" <directory /> options followsymlinks allowoverride none </directory> <directory "/home/vance/aptana studio 3 workspace/testingspacesphp"> 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>
both config files identical except paths in <directory> entry , path document root.code:<virtualhost *:80> serveradmin webmaster@localhost documentroot /home/vance/learningphp <directory /> options followsymlinks allowoverride none </directory> <directory /home/vance/learningphp> 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>
also, when restart apache server enabled site gives 403 replies; no errors displayed in console.
using ubuntu 10.10.
help,
vance
only guess , not tried in practice try substituting spaces in <directory> line either "%20" or "\040" - without quotes![]()
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Apache Virtual Host config file--spaces in path
Ubuntu
Comments
Post a Comment