access to my server is always allowed


 
Thread Tools Search this Thread
Top Forums Web Development access to my server is always allowed
# 1  
Old 05-22-2009
access to my server is always allowed

Hi,

I can't deny the access to my server. if I visit http://localhost I can always see all the files.
Why ?


Code:
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Deny from All
</Directory>







Code:
<Directory "/Users/aneuryzma/Sites">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None
                               
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Deny from all

</Directory>


thanks
# 2  
Old 05-22-2009
See the Apache mod_access docs.

Here is a clue:

Code:
SetEnvIf User-Agent ^KnockKnock/2\.0 let_me_in
<Directory /docroot>
    Order Deny,Allow
    Deny from all
    Allow from env=let_me_in
</Directory>

# 3  
Old 05-22-2009
Hi,

i've modified to

Code:
<Directory "/Users/aneuryzma/Sites">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks MultiViews

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None
                               
    #
    # Controls who can get stuff from this server.
    #
    Order Deny,Allow
    Deny from all
    Allow from env=let_me_in

</Directory>

but still everything is accessible.

I've also tried

Code:
Order Deny,Allow
Deny from All

and

Code:
Order Deny,Allow

I'm sure the directory path is correct, because the indexing works properly.
# 4  
Old 05-22-2009
Did you restart apache after each configuration change?
# 5  
Old 05-22-2009
yes!

sudo apachectl -k restart

and refreshed firefox cache
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

2. Proxy Server

How to use Squid on Linux to control certain IP to access Web Server and certain IP cannot access?

Dear all experts here, :) I would like to install a proxy server on Linux server to perform solely to control the access of Web server. In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server. I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies

3. Shell Programming and Scripting

Multi server access through remote server using ssh

Team, Presently I have 5 ip address kept in ip_abc1 file, for each of the ip address listed, i need to login on each ipaddress one at a time and login as below for that specific ip address ssh -p 8101 karaf@<ip.address_for the specific ip address as logged in> password features:list... (4 Replies)
Discussion started by: whizkidash
4 Replies

4. UNIX for Dummies Questions & Answers

Access of Microsoft Team Foundation Server (TFS) repository from Unix Server

Hello, Some of our application team uses Microsoft Team Foundation server (TFS) reposity tool for their .NET projects , I would like to access it form Unix/Linux machine. Please let me know how can access the TFS from unix. Thanks (0 Replies)
Discussion started by: posix
0 Replies

5. IP Networking

I can't get access by physical name to server

Hi all I have connected new server to LAN but when I use rlogin command by server name it dose not work but by IP adderss it works. can any one tell the reason? (4 Replies)
Discussion started by: bintaleb
4 Replies

6. Shell Programming and Scripting

Access value from different server

Hi my problem goes like dis i have two linux pc i have configure in /etc/hosts file 192.168.50.1 avinash 192.168.50.2 pradeep .......... in pc1 so that echo $avinash and echo $pradeep will display the ip specified above but my actual problem being in pc2 i know the... (1 Reply)
Discussion started by: avi.skynet
1 Replies

7. Shell Programming and Scripting

Can a script runned in local server access remote server?

Hi, Im creating a script that is supposed to run commands on remote server using sftp. My script is as below: #!/bin/ksh sftp remote_server mypassword cd /u08/mydir/allfiles mget * .. But this is what I got when I runned the script: Connecting to remote server...... (3 Replies)
Discussion started by: luna_soleil
3 Replies

8. Solaris

restricting access to a server

We want to secure access to a server by restricting the number of users who can login to it. Our users are NIS users. Only few of them can telnet/ssh this server. Do you have any idea on how to implement that? thanks. (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

9. UNIX for Advanced & Expert Users

Is it possible to access from a server the database of another server.

Hi, I am using Teamcenter & in unix have ftpd the IMAN_DATA(unix) of the other server to this server & set all the environment variables(like ORACLE_HOME, IMAN_DATA) correctly.I have created a link that points to this path where i had ftpd the IMAN_DATA(unix).In IMAN_DATA which i had ftpd all... (1 Reply)
Discussion started by: debu
1 Replies

10. UNIX for Dummies Questions & Answers

Can't access files on own server

This is very baffling. I have a web server directory, http://domainName/myDir. The directory's permissions are 744, so I have full permisions, and other people can read the directory. I created a subdirectory in that directory: domainName/myDir/subDir. I set the permisions of that to 744 also.... (3 Replies)
Discussion started by: Djaunl
3 Replies
Login or Register to Ask a Question