drifterCZ Posted September 1, 2009 Share Posted September 1, 2009 hello, i am triing to show a page in browser via MTA server, but it still says "page not found." [url=http://127.0.0.1:22004/mod/test.html]http://127.0.0.1:22004/mod/test.html[/url] meta.xml: <meta> <info autor = "unknown" type="gamemode" name="nevim"/> <script src = "main.lua" /> <script src = "client.lua" type="client" /> <script src = "weather.lua" type="client" /> <file src = "images/login.jpg" /> <html src = "test.html" raw="true" /> </meta> test.html: <html> <body> This resource is called... </body> <html> please say me what is wrong if u could... thanks Link to comment
50p Posted September 1, 2009 Share Posted September 1, 2009 Your test.html is not RAW file. Also, make sure the port is correct. Link to comment
50p Posted September 1, 2009 Share Posted September 1, 2009 Of course it does require you to login. You can make it public by giving everyone access to web resources (also webadmin or resourcebrowser). Before you start your server open acl.xml and go to acl "Default", than find this line: <right name="general.http" access="false" /> Change it to "true" and everyone will have access to http resources. EDIT: Where is your previous message? Why did you delete it? Link to comment
drifterCZ Posted September 1, 2009 Author Share Posted September 1, 2009 thanks a lot, skiller now it works great Link to comment
50p Posted September 1, 2009 Share Posted September 1, 2009 Good luck with your web resources. Link to comment
eAi Posted September 1, 2009 Share Posted September 1, 2009 'raw' just means it won't be parsed for <* lua script here *> tags. This is generally required for binary files etc, but can be used for any kind of file that doesn't have those tags in - they'll be somewhat faster to load. You can give access to a single resource from http using the ACL right 'resource.[name].http' I think... Link to comment
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