PDA

View Full Version : .htaccess reminder anyone please ?


Dean B
01-29-1999, 11:49 AM
Hi all,
My friend has one of those ISP's who make him stick all his cgi on one cgi server and his html on another. For some reason the cgi server does not appear to want to write to files on his non cgi server. His support are real slow so I thought I would add an .htaccess to his cgi server to allow html files to run on it. Can someone remind me of the the correct syntax please ? I have a feeling it's something like -
AddFileType text/html htm

Am I close ? BTW, anyone who knows why his cgi FTP server isn't writing to his non cgi and can give me something I can throw at his naff support would be much appreciated. I should say they've only started offering cgi access within the last week.
And yes, I shall be doing all in my power to drag him over to FQuest in the near future (kicking & screaming if necessary) http://www.aota.net/ubb/biggrin.gif


------------------
Regards, Dean.
**DMCity Web Board**
http://xdmcity.futurequest.net/cgi-bin/ubb/Ultimate.cgi

Dean B
01-29-1999, 03:10 PM
Someone else is having the same problem so I'm pretty convinced that it's their new cgi server setup. Just exactly what they have, or haven't done, is intriguing me though. Stick with the cgi Hearts, I only started playing with it a few months ago; it does start to make sense after a while http://www.aota.net/ubb/wink.gif

Dean.

Justin
01-29-1999, 05:13 PM
I'm going to guess that they probably set up the cgi server as a virtual path - even though it's on a different server physically, it should be referenced by domain.com/cgi-bin anyway. If that's true, then it should also work the other way, like for writing files to the html server...

These are kinda educated guesses, as I just set up apache on my computer. I can put the cgi-bin on another drive, or even another networked computer, and it will still work exactly the same EXCEPT for where the script calls for the full path to the cgi script. Even that might be referenced in the same way - not sure yet.

Tell your friend that once he's here, they will have to drag him away from FQuest kicking and screaming... http://www.aota.net/ubb/biggrin.gif

Justin
-- kicking, screaming, crying, whining, begging, pleading... --

PS - this is provided that they set these things up properly in the configuration files - and, of course, I just realized, they might not be using Apache... Should be possible on other systems, too http://www.aota.net/ubb/smile.gif

[This message has been edited by Justin (edited 01-29-99).]

hearts
01-30-1999, 12:10 AM
this is just a guess.. as I am trying bvery hard to learn this too..

AddFileType text/html htm

my guess would be AddFileType text/html

but JUST a guess

Dean B
01-30-1999, 12:23 AM
Yes thx Hearts, I tried them. I uploaded a file to his cgi, renamed it to .htaccess and whoosh it gets deleted in an instant. They obviously don't want people trying this http://www.aota.net/ubb/smile.gif
Dean.

hearts
01-30-1999, 12:30 AM
I would drag him kicking and screaming.. *giggle*

I have JUST started learning to work with scripts and the one thing I learned that is most important is that paths have to be correct. Only other thing I can suggest.

BEST suggestion I could offer that would be helpful.. is to email DEL. He would be your man!

Dean B
01-30-1999, 09:43 AM
Justin,
You assume correctly http://www.aota.net/ubb/smile.gif They are different servers and they are running apache. Below is the 'check enviromental variables' from the UBB setup. Muchly strange http://www.aota.net/ubb/smile.gif
Your Perl Version: 5.00404

SERVER_SOFTWARE
Apache/1.3.3 (Unix)
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
/usr/local/apache/share/htdocs
REMOTE_ADDR
194.168.10.42
SERVER_PROTOCOL
HTTP/1.0
SERVER_SIGNATURE
Apache/1.3.3 Server at cgi.cranford.force9.co.uk Port 80

REQUEST_METHOD
GET
HTTP_REFERER
http://cgi.cranford.force9.co.uk/ubbcgi/cpanel.cgi?action=variables
QUERY_STRING
action=env
HTTP_USER_AGENT
Mozilla/4.5 [en] (WinNT; I)
PATH
/usr/bin:/bin
HTTP_ACCEPT
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_CONNECTION
Keep-Alive
REMOTE_PORT
1382
HTTP_ACCEPT_LANGUAGE
en
SCRIPT_NAME
/ubbcgi/cpanel.cgi
HTTP_ACCEPT_ENCODING
gzip
SCRIPT_FILENAME
/home/cranford/cgi-bin/ubbcgi/cpanel.cgi
SERVER_NAME
cgi.cranford.force9.co.uk
REQUEST_URI
/ubbcgi/cpanel.cgi?action=env
HTTP_ACCEPT_CHARSET
iso-8859-1,*,utf-8
SERVER_PORT
80
HTTP_EXTENSION
Security/Remote-Passphrase
HTTP_HOST
cgi.cranford.force9.co.uk
SERVER_ADMIN
webmaster@force9.net

Dean.