creepcolony
06-16-2001, 11:08 PM
hey creating a cgi-bin in the web directory would make the url domain.com/cgi-bin and not domain.com/web/cgi-bin right?
![]() | View Full Version : cgi-bin creepcolony 06-16-2001, 11:08 PM hey creating a cgi-bin in the web directory would make the url domain.com/cgi-bin and not domain.com/web/cgi-bin right? (SH)Saeed 06-17-2001, 12:13 AM /home/sites/siteXX/web = www.domain.com /home/sites/siteXX/web/cgi-bin/ = www.domain.com/cgi-bin/ /home/sites/siteXX/web/web/cgi-bin/ = www.domain.com/web/cgi-bin/ I hope that helps. Chicken 06-17-2001, 02:54 AM Originally posted by creepcolony hey creating a cgi-bin in the web directory would make the url domain.com/cgi-bin and not domain.com/web/cgi-bin right? Yes. kickster 06-19-2001, 08:40 PM If you are running a raq you dont even need a cgi-bin dir. Make sure to secure the data directory since every one will have access to it, or make the data directory below the /www/ ie. /data/www/ creepcolony 06-20-2001, 10:26 AM yeah i had to create one cuz my last host i used had a cgi-bin and i didn't wanna change all the paths to my cgi scrips creepcolony 06-20-2001, 10:27 AM uh oh...i just put an index.html file in my cgi-bin...is that secure enough? Lawrence 06-20-2001, 07:51 PM I don't see a problem with that, in fact it's a good way to stop directory browsing if it's turned on. But what's your reason for putting it there? kickster 06-20-2001, 08:03 PM If your script is using a text based data file then hackers or anyone else can read the data which may contain admin or user passwords. Its based to place them in a root directory. creepcolony 06-20-2001, 08:11 PM errrr...how do i put it in the root directory? :eek: :eek: :eek: :eek: Mystic^|3io 06-20-2001, 08:16 PM Easy, just upload it to the "/" folder, or public_html, either one. The main folder when you login to your FTP. creepcolony 06-20-2001, 08:18 PM uhhh...we talking about cobalt raqs here kickster 06-20-2001, 08:20 PM On Cobalt raq Example Your CGI files go to /home/sites/siteX/www/cgi-bin/mycgifiles/Admin.cgi Your data files go to /home/sites/siteX/mydatafiles/data.txt This way people wont have access to your sensetive data files. or simply put all data in a directory and make it password protected both will be secure. (almost) kickster 06-20-2001, 08:22 PM If you need more help or if you think I am not clear enough just let me know. I will try my best to help you out. creepcolony 06-20-2001, 08:23 PM thanks creepcolony 06-20-2001, 08:25 PM /home/sites/siteX/mydatafiles/data.txt so for mydatafiles i create a directory, and name it cgi-bin for my cgi stuff? kickster 06-20-2001, 08:34 PM mydatafile is just a name you can name it whatever you wish. Same goes for CGI-bin dir. Make sure to change the path on your files to point to correct directory. creepcolony 06-20-2001, 10:46 PM ok but what would the url be? Chicken 06-20-2001, 11:46 PM That's the point, there is no URL. Can't access it from the web. When you log into your account as a site admin (not as admin, but as a user who is the site admin), and got towards root as much as you can, you see: /stats /logs /certs (or somehing like that, I can't think of it) /web You would add: /mydatafiles (or whatever you want to call it) In the script, where it asks you to put the path, either: /mydatafiles *or* ../../mydatafiles -should work This assumes the script is in: /web/cgi-bin creepcolony 06-21-2001, 11:30 AM oh...ok thanks |