| Author | Post |
|---|
redneck Member
| Joined: | Sat Feb 18th, 2006 |
| Location: | |
| Posts: | 32 |
|
Posted: Fri Oct 27th, 2006 11:57 pm |
|
I get this when trying to view my wrx.cgi page. This is a freash install on a site that the dns set fully yet. I am having to use this url.
Is the problem because of the what I am tring to access it?
http://www.xxxxx.xxx.com/~XXXXXX/editwrx/wrx.cgi
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, server@gzo.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Last edited on Sat Oct 28th, 2006 03:29 am by redneck |
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 578 |
|
Posted: Sat Oct 28th, 2006 01:01 am |
|
You can not run editwrx on a tilde url because the url can not be converted to a path. Editwrx needs the real domain name in the url.
BUT, you do not have to wait for the dns system to resolve your domain. Whenever a browser opens it reads a file on your computer and puts that file's contents into memory. The file is a list of IP addresses and domains found at those IP addresses. Later when the browser tries to find a domain it first checks it's memory to see if it already knows what the domain's IP is. If it does it does not ask the dns system to resolve the domain, it just goes directly to the server at the IP address and requests the domain.
The file is at C:/Window/system32/drivers/etc . The name of the file is hosts (it does not have an extension). Open it in Notepad. On a line by itself, type the IP address that your domain will resolve to, then hit the TAB key, then type the domain name. Example:
216.88.69.123 domain.com
Save the file. Close all sessions of Explorer, then reopen Explorer and go to your domain.
Warning: http://www.domain.com and domain.com are two different domains as far as any browser is concerned. If you want to access your domain with the www then you have to have a separate line in the hosts file with the www in the domain name.
|
redneck Member
| Joined: | Sat Feb 18th, 2006 |
| Location: | |
| Posts: | 32 |
|
Posted: Sat Oct 28th, 2006 03:34 am |
|
| Keith I tried what you said. It did try to pull the correct website but when I put the /editwrx/wrx.cgi behind the URL I get a page cannot be displayed.
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 578 |
|
Posted: Sat Oct 28th, 2006 06:14 am |
|
That may be an indication that the server does not allow you to run a cgi script outside of the cgi-bin.
Unix server instructions:
1) place a simple text or html file in the /editwrx folder and see if you can get it to display. If so then the url is correct.
2) if #1 displayed your text or html file, then create a file named .htaccess and place the following in it:
Options +ExecCGI
AddHandler cgi-script .cgi .pl
3) Upload .htaccess to the /editwrx folder. If your FTP client options has not been set to show "hidden" files you will not be able to see the .htaccess file.
4) Try accessing /editwrx/wrx.cgi again. If you can not, remove the .htaccess file and move wrx.cgi to the domain's cgi-bin folder. (domain.com/cgi-bin/wrx.cgi)
Windows server instructions:
http://editwrx.com/images/IIS_setup.gif
http://editwrx.com/images/IIS_setup2.gif
|
redneck Member
| Joined: | Sat Feb 18th, 2006 |
| Location: | |
| Posts: | 32 |
|
Posted: Wed Nov 1st, 2006 07:51 pm |
|
Still working on it. Sorry for the post.
Last edited on Wed Nov 1st, 2006 07:59 pm by redneck |
 Current time is 04:51 pm | |
|