• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Change html document path in Apache

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I went into the httpd.conf file and changed the documentroot to point to a different directory, I restarted my httpd, and when I went to the web site, it said I was restricted from viewing it.
I then found the commonhttpd.conf file and saw information about a file called .htaccess that sets the permissions for who can view what, etc. I am kind of lost. I need to specify a different documentroot and don't know what else to do.
Any information would be appreciated.
Thanks.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hokay, lets see,

Originally posted by Gregg Bolinger:
Ok, I went into the httpd.conf file and changed the documentroot to point to a different directory, I restarted my httpd, and when I went to the web site, it said I was restricted from viewing it.
This is probably because you had a .htaccess file in that directory and it is disallowing access to the directory.
I then found the commonhttpd.conf file and saw information about a file called .htaccess that sets the permissions for who can view what, etc. I am kind of lost. I need to specify a different documentroot and don't know what else to do.
If you are new to Apache, try just working with the httpd.conf file and don't include any .htaccess files. They are just like the httpd.conf, but it can ask them to be included in the configuration when Apache starts up. It does this by using:
AccessFileName .htaccess
to define configuration files which can be included automatically from inside directories listed under <Directory> directives.
You should (backup and) delete any .htaccess files and reboot Apache. You might also want to check your httpd.conf for
Include /somedir/someconffile.conf
lines, because these could interfere as well.
Any information would be appreciated.
Thanks.


Good luck.
Matt.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic