10. april 2002 - 15:31Der er
38 kommentarer og 1 løsning
.htaccess - ingen side
Jeg har oprette en .htaccess-fil med informationen om at den skal sende besøgende til 404.php hvis siden ikke findes. JEg tror det virker. Men når man indtaster en side som ikke findes kommer fejl-meddelsen: 500 - Internal Server Error? Hvad betyder det, og hvad skal jeg gøre for at få den til ikke at gøre det?
NB. Skal siges at det ikke hjælper at oprette i htaccess-filen at den skal sende 500-fejl til 404.php!
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
# # AccessFileName: The name of the file to look for in each directory # for access control information. # AccessFileName .htaccess
# # The following lines prevent .htaccess files from being viewed by # Web clients. Since .htaccess files often contain authorization # information, access is disallowed for security reasons. Comment # these lines out if you want Web visitors to see the contents of # .htaccess files. If you change the AccessFileName directive above, # be sure to make the corresponding changes here. # <Files .htaccess> Order allow,deny Deny from all </Files>
Prøv at checke din server-logfil for det pågældende website, og skriv den fulde fejlmeddelelse her (hvis du altså har adgang til logfilen :-). Fejl 500 er ofte fordi serveren prøver at exekvere noget der mislykkes. Fx. hvis et .cgi script er buggy eller hvis der er problemer med permissions.
# # The following lines prevent .htaccess files from being viewed by # Web clients. Since .htaccess files often contain authorization # information, access is disallowed for security reasons. Comment # these lines out if you want Web visitors to see the contents of # .htaccess files. If you change the AccessFileName directive above, # be sure to make the corresponding changes here. # <Files .htaccess> Order allow,allow Deny from all </Files>
men min side kan godt lave lidt htaccess. Jeg kan lave en beskydtet mappe. Jeg kan få det der login-vindue op, men jeg kan godt nok ikke få det til at virke med at logge ind, men den burde da virke når det login-vindue kan komme!
# This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride none
# # The following lines prevent .htaccess files from being viewed by # Web clients. Since .htaccess files often contain authorization # information, access is disallowed for security reasons. Comment # these lines out if you want Web visitors to see the contents of # .htaccess files. If you change the AccessFileName directive above, # be sure to make the corresponding changes here. # <Files .htaccess> Order allow,deny Deny from all </Files>
Så nu køre Apache igen... Men den kommer stadig med 500-fejlmeddelsen
# This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks MultiViews
# # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride None
# # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory>
lukker lige svaret!!! Når vi engang kommer til at være på samtidig på IC og vi får det ordnet skal du nok få de få point + lidt mer!!!
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.