kilimanjaro Posted September 18, 2004 Author Report Share Posted September 18, 2004 (edited) uhh...whats an index.html? Edited September 18, 2004 by kilimanjaro Link to comment Share on other sites More sharing options...
scoopy Posted September 18, 2004 Report Share Posted September 18, 2004 uhh...whats an index.html? <{POST_SNAPBACK}> that would be the web page you have been trying to access... IF its not there... then your not going to get it and apache is gonna try to access other files instead... but apache has been configured not to show them, which is why your getting the forbidden messages. I attached a plain index file for your use. index.html Link to comment Share on other sites More sharing options...
kilimanjaro Posted September 18, 2004 Author Report Share Posted September 18, 2004 do I need to restart the server after I put it in the file? Link to comment Share on other sites More sharing options...
scoopy Posted September 18, 2004 Report Share Posted September 18, 2004 nope.... just when you change a config file or a service / module. Link to comment Share on other sites More sharing options...
kilimanjaro Posted September 18, 2004 Author Report Share Posted September 18, 2004 how do I make one of these index.html? Link to comment Share on other sites More sharing options...
kilimanjaro Posted September 18, 2004 Author Report Share Posted September 18, 2004 I still cannot access the file. could you try 216.98.234.11/openaccess Link to comment Share on other sites More sharing options...
Gowator Posted September 18, 2004 Report Share Posted September 18, 2004 good news, your webserver is up and running and I can access 216.98.234.11 I cant however see 216.98.234.11/openaccess ... does apache own it and is it readable by apache, does it contain the index.html ??? p.s. This is good... thats the hard part working! Link to comment Share on other sites More sharing options...
kilimanjaro Posted September 19, 2004 Author Report Share Posted September 19, 2004 (edited) Yes apache owns it, it is readable, and it does contain an index.html that scoppy made for me. I have port 80 open, but I still cannot access my file as localhost or my ip. How do I make an index.html? Edited September 19, 2004 by kilimanjaro Link to comment Share on other sites More sharing options...
scoopy Posted September 19, 2004 Report Share Posted September 19, 2004 try creating some different folder in /var/www/html/ for experiment's sake... name it "test" and put a copy of "index.html" in that "test" folder. You should be able to view it in a browser just by going to localhost/test/ BTW: you can make index.html (or any web page) in whatever text editor you prefer or could use an editor such as mozilla's composer. Link to comment Share on other sites More sharing options...
scoopy Posted September 19, 2004 Report Share Posted September 19, 2004 I just noticed something different on your apache test page.. The first line says this: [an error occurred while processing this directive] hmmm, never seen that before. Link to comment Share on other sites More sharing options...
Gowator Posted September 19, 2004 Report Share Posted September 19, 2004 How do I make an index.html? An index.html is just any file that apache will execute as a default if no other is specified in a directory. It should be valid html else it will throw up errors ... but thats all.... try using localhost instead of your IP... Scoopy and I are working out whether your apache has just got a directive only to allow localhost ... Scoopy can help better because I have a Debian apache running as my main webserver... the default settings are slightly different....and presently you have a working setup with Mandrake defaults You can make your own index.html just make and file in a html editor (OpenOffice is fine) and just save it as index.html... Once this is done and working a couple of security things need unlocking for you to have file access they way it will work... one way is per directory keeping the secure setup elsewhere <Directory /var/www/html/test> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec </Directory> Link to comment Share on other sites More sharing options...
kilimanjaro Posted September 19, 2004 Author Report Share Posted September 19, 2004 I made the new folder - testwith an index.html in it. The error was because I had remove the file platform.html and put it in my folder to see if it changed anything. When I put it back the error line dissappeared. I'm going to try to move the main index.html into test and see if that works, btw I cannot open test. No changes still says forbbiden. The name for the file owner is apache - system user for apache2 Could this be causing problems? Link to comment Share on other sites More sharing options...
kilimanjaro Posted September 19, 2004 Author Report Share Posted September 19, 2004 I actually installe apache2 first, but it wasn't working, and I saw gowator was usinf 1.3, so I removed it and put in 1.3. Link to comment Share on other sites More sharing options...
scoopy Posted September 19, 2004 Report Share Posted September 19, 2004 all my web files (under /var/www/html) are owner: root and group: root that could be the problem... how did apache get ownership ? I would try changing the folder "test" and its "index.html" to root and then see. Link to comment Share on other sites More sharing options...
adamw Posted September 19, 2004 Report Share Posted September 19, 2004 vdub: actually, it'd be far more secure to use a different port. either tell ssh to use a different port and open that, or set your firewall to forward an external connection on some other port to internal port 22. why use the port every hacker *knows* is ssh? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now