Solved

How do i can apply security on  LINUX directory so that the users cannot consent to the code of my web application in the APACHE server?

Posted on 2004-04-15
6
241 Views
Last Modified: 2010-04-22
I have a LINUX - APACHE  application and i need apply security to not allow the access to the code or root directory of my web application.  Now I have a URL: www.aaa.gov.org/bbb/ccc.html
How Can I set this URL as:
  www.aaa.gov.org

and with its security
0
Comment
Question by:jlguerra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 43 total points
ID: 10837745
You need to edit the DocumentRoot directive in /etc/httpd.conf
0
 
LVL 10

Assisted Solution

by:Mercantilum
Mercantilum earned 41 total points
ID: 10848641
* In order to prevent a directory listing, either

1. create a index.html file in the root of your web server documents (and/or subdirs)
touch index.html

2. modify httpd.conf  and in
<Directory your-docs-path>
 Options +Indexes ....
 ....
</Directory>

Ensure +Indexes is  -Indexes
 Options -Indexes ....


* Regarding the www.aaa.gov.org/bbb/ccc.html =>  www.aaa.gov.org

1. www.aaa.gov.org is not a VH

Ensure your DocumentRoot in httpd.conf is something like
DocumentRoot  /myserverdir/asubdir/bbb
If you want ccc.html to be read as default :
either rename ccc.html as index.html or (without changing the default in httpd.conf, cleaner:) make a link in this dir to index.html
ln -s ccc.html index.html

2. www.aaa.gov.org is a virtualhost

Ensure your VH content is like
<VirtualHost *>
DocumentRoot /myserverdir/asubdir/bbb
ServerName www.aaa.gov.org
</VirtualHost>
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 41 total points
ID: 10852270
in your httpd.conf sett at least following
  DocumentRoot /path/to/bbb
  <Directory />
    Options None
    AllowOverride None
  </Directory>
  <Directory "/path/to/bbb">
    DirectoryIndex index.html
  </Directory>

If you need more security, you need to provide more details
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Fine Tune your automatic Updates for Ubuntu / Debian
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question