Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache::Sandwich and how to

Status
Not open for further replies.

ididntdoit

Technical User
Jan 29, 2003
1
GB
Hi,

I am trying to get Apache::Sandwich working. I'm comming from a windows environment so i'm knew to .htaccess file. I need to do this using .htaccess as i don't want to play with the apache config file. At the moment i have the module installed ok. I installed the module using webmin and webmin reported a sucessful install. I will use base paths to give you an idea of what files are placed where.
The directory i want to apply the sandwich to is
/home/httpd/html/members/
and every sub-directory inside that directory. So i have placed a .htaccess file inside the members directory with the following information

SetHandler perl-script
PerlHandler Apache::Sandwich
PerlSetVar HEADER "/header.html"
PerlSetVar FOOTER "/footer.html"

When i try and call a file from within this directory (eg - /home/httpd/html/members/index.html)i get a standard microsoft page with the following header

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Incidently i have placed the header and footer.html pages inside the members directory. Is this correct according to the position of the .htaccess file?

Has anyone any idea of what the problem is.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top