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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seeing Server Side Includes on my PC

Status
Not open for further replies.

purpleski

IS-IT--Management
Joined
Aug 14, 2002
Messages
112
Location
FR
Hi

I am not sure whether this is the correct forum for this question but I have web site running on a virtual server under Apache. Everything works fine on the server. See The header, menu and footer are all SSI.

However, for obvious reasons, I can see the SSI's on PC. I am running W2K with IE6. What is the easiest way to set up the PC with a server so that I (and two other computers on my Network) can see the SSI's.

I have down loaded Foxserv which I am sure is a great bit of software but a. I can't get it to work (!) and b. it does seem a bit of a "sledge hammer to crack a nut" for what I need.

Can anybody help and if Foxserv is the best way to go can anybody give me the steps to get it up and running.

Thanks.
 
Windows comes with its own program thingy WSP or WPS (its on the CD) that you can install, Web Publishing wizard or something, in that you can view your site as it would be online but offline... as it were

=D

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
 
I am a little confused here, your website is on a server and working ok.
But you want to run SSI's on your PC but NOT on that server where your site is hosted? Is that correct?

IF SO {
SSI's have to run on a server, but you can very easily install apache on your PC. Just download the windows binary.
I'm not familiar with Foxserv, why not just go with Apache?
}
ELSE {
can you explain a little more what you want
}




- É -
 
Cian

Thanks for that. I want the SSI's to run on my PC so that I can see changes there. ALready running fine on the server but of course to see the SSI's at the moment I have to go online and unfortunately I don't have broadband.

I have downloaded Apache

Win32 Binary (MSI Installer): apache_1.3.28-win32-x86-no_src.msi [PGP] [MD5]

and will try and install this and get it to work. If not I will be back but if in the meantime you have any tips let me know.

Regards

 
Back again

I have installed Apache on my Windows 2000 PC and configured httpd.conf file and when I restart apache I get no errors.

The site shows at correctly and I have the following

Options Indexes FollowSymLinks Includes

AddType text/html .shtml .htm .html
AddOutputFilter INCLUDES .shtml .htm .html
AddHandler server-parsed .shtml

but SSI's still do not work either for .htm files or .shtml files. What I am doing wrong?

Amy ideas?
 
Hi

I don't know what I did but I got it working and I have ZoneAlarm installed as well and it is working fine.

Thanks everybody especially Wullie whose FAQ works a treat.

However one last question I have the files installed in the directory

C:\Program Files\Apache Group\Apache2\htdocs

with

<Directory &quot;C:/Program Files/Apache Group/Apache2/htdocs&quot;>

and

DocumentRoot &quot;C:/Program Files/Apache Group/Apache2/htdocs&quot;

in the httpd.conf file and everything is fine SSI's work etc. But I would prefer to have my web site files in a different drive and directory:

E:/purpleski/files/

but if I change DocumentRoot and <Directory lines to

E:/purpleski/files/

I get an error when restarting Apache I get the error

Syntax error line 229 of C:\Program Files\Apache Group\Apache2\conf:
DocumentRoot must be a directory.
Note the errors.....

Line 229 contains

#DocumentRoot &quot;E:/purpleski/htdocs&quot;

Any thoughts?

Second question - This is working for me but the two computers on my network just see it as files on my hard drive. How can the pages be &quot;served&quot; to them so that they can see SSI's etc?

Thanks.


 
I am not sure if that can be done( because i'm new to Apache) but you could try to set up a virtual host, it's pretty easy and Wullie has great FAQ's on that also.

You're last question - maybe virtual hosts will take care of that also?

I use virtual hosts as shortcuts so if I type 'sql' into my browser I get the phpMyAdmin user interface, or if I type 'cp' i get my site control panel, but all of these are contained within htdocs, just in different sub folders.





<!--#sig value=''É'' url='' -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top