Forum Moderators: phranque

Message Too Old, No Replies

No .asp, no permission rights, some includes, no subdirectories

Pages only half loading

         

demonboy

8:40 am on Jan 18, 2006 (gmt 0)



I'm new to Apache2 so this is possibly a really obvious fault but I've posted this on other forums and received no replies. My apologies but any help in setting up a virtual server on my laptop would be really appreciated.

I'm running Apache 2.0 on XP Home.

1) I don't have 'index.htm' in my root because it's 'index.asp'. When I try to hit this is tells me I don't have permission to access the page. How do I configure this so that it loads .asp pages?

2) If I rename 'index.asp' to 'index.htm' my home page half-loads but fails to display some, but not all, include files. At the top of the page it says "<%response.Charset="utf-8"%>".

3) My homepage sits in the root but the rest of my site sits within folders beneath the root. When I click on the menu to go to a different part of the site it doesn't load the page, it just displays the raw code (I'm using Firefox). Why will it not read below the root? <snip> The home page sits in the root but any section accessed via the menu drills down a level.

Is it possible the very last section of the 'httpd.conf' file may be incorrect?

<VirtualHost *> ServerName followit
# Line Below - If you have a DynDNS account , Discussed later article.
ServerAlias www.example.com
ServerAdmin webmaster@example.com
DocumentRoot "C:/Documents and Settings/me/My Documents/mine/www/followit"
ErrorLog "logs/followit-error_log"
# Line below - 'combined' gives us good detailed stats (Later Article)
CustomLog logs/followit-access_log combined
UseCanonicalName off
AddHandler server-parsed .shtml Options FollowSymLinks +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
</VirtualHost>

Thanks for your time!

[edited by: jdMorgan at 4:57 pm (utc) on Jan. 18, 2006]
[edit reason] Removed specifics per TOS. [/edit]

jdMorgan

2:34 pm on Jan 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



demonboy,

Welcome to WebmasterWorld!

I know nothing about .asp, but you will need to include .asp files in your AddHandler and AddType directives, and your Options directive needs to be on its own line, not at the end of the AddHandler line.

Jim