Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 12:34 am EST
Geeklog Forums
path question
Anonymous
Anonymous
If I load geeklog into my weroot directory what would this path look like
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
if I take out the public_html directory would it look like this $_CONF['path_html'] = $_CONF['path'] . '/';
I am sorry I did not see an example of what it looks like if the config file is in the root. Thanks
11
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It would be $_CONF['path_html'] = $_CONF['path'];
$_CONF['path'] already ends in a slash, so you don't need to add another one.
However, this is NOT a good idea. Everything that's outside the public_html directory is there for a reason - it should not be accessible via a URL.
What you have now is that your config.php is accessible via http://yourdomain/config.php. In case of a server misconfiguration, all the world can see your config file, including your MySQL password. Surely you don't want that.
Also accessible are the log files which may contain sensitive information, too.
So don't do that.
If you can't create directories above your DocumentRoot (as is the case with some hosting services), put all the files which are outside of public_html into a folder, say geeklog, put that into you DocumentRoot and secure it with a .htaccess and .htpasswd file.
bye, Dirk
8
9
Quote
Anonymous
Anonymous
Thanks Dirk, I wanted to do this so that when www.foo.com is entered it will find the index.php. How can I do this? Do I have to run a redirect script? That seems slow what do you suggest. Thanks again,
Kel
10
9
Quote
All times are EST. The time is now 12:34 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content