LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2015, 07:30 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
one of virtual host got "Error 403 "


I've installed xampp x64 v5.6.14-0 on Centos 7.1 x64, and I logged in as root, and make directory "/var/www/html/testserver.info". Then I tried to open this directory through the ServerName "test.server.com", but the "Error 403" came up.

1. httpd-vhosts.conf
Code:
<VirtualHost *:80>
	ServerAdmin webmaster@server2.net
	DocumentRoot /var/www/html/testserver.info
	ServerName test.server.com
	ServerAlias www.test.server.com
    <Directory /var/www/html/goldenpen>  
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>	CustomLog "logs/test.server.com_access_log.%Y-%m-%d 86400 +540" common
	ErrorLog "logs/test.server.com_error_log.%Y-%m-%d 86400 +540" 
</VirtualHost>
2. the directory "testserver.info"

Quote:
drwxr-xr-x. 15 apache apache 4096 Nov 14 05:23 testserver.info
3. "ll /var/www/html/testserver.info"
Quote:
# ll testserver.info
total 264
drwx---rwx. 6 apache apache 4096 Nov 14 02:57 adm
drwx---rwx. 2 apache apache 4096 Nov 14 02:57 bbs
-rwx---rwx. 1 apache apache 365 Oct 30 00:28 _common.php
-rwx---rwx. 1 apache apache 25294 Oct 30 00:28 common.php
-rwx---rwx. 1 apache apache 8485 Nov 9 07:08 config.php
drwx---rwx. 2 apache apache 4096 Nov 14 02:57 css
drwx---rwx. 3 apache apache 25 Nov 14 02:57 data
drwx---rwx. 2 apache apache 88 Nov 14 02:57 extend
drwx---rwx. 2 apache apache 4096 Nov 14 02:57 fonts
-rwx---rwx. 1 apache apache 7245 Oct 30 00:28 g4_import.php
-rwx---rwx. 1 apache apache 16611 Oct 30 00:28 g4_import_run.php
-rwx---rwx. 1 apache apache 254 Oct 30 00:28 _head.php
-rwx---rwx. 1 apache apache 8872 Oct 30 00:28 head.php
-rwx---rwx. 1 apache apache 7269 Nov 9 06:44 head.sub.php
drwx---rwx. 2 apache apache 4096 Nov 14 02:57 img
-rwx---rwx. 1 apache apache 804 Nov 5 06:46 index.php
drwx---rwx. 2 apache apache 4096 Nov 14 02:57 install
drwx---rwx. 2 apache apache 4096 Nov 14 02:57 js
drwx---rwx. 3 apache apache 4096 Nov 14 02:57 lib
-rwx---rwx. 1 apache apache 63150 Oct 30 00:28 LICENSE.txt
-rwx---rwx. 1 apache apache 52 Oct 30 00:28 pax_global_header
-rwx---rwx. 1 apache apache 415 Oct 30 00:28 perms.sh
drwx---rwx. 15 apache apache 4096 Nov 14 02:57 plugin
drwx---rwx. 15 apache apache 4096 Nov 14 02:57 skin
-rwx---rwx. 1 apache apache 254 Oct 30 00:28 _tail.php
-rwx---rwx. 1 apache apache 3278 Oct 30 00:28 tail.php
-rwx---rwx. 1 apache apache 947 Oct 30 00:28 tail.sub.php
drwx---rwx. 3 apache apache 18 Nov 14 02:57 theme
-rwx---rwx. 1 apache apache 7356 Oct 30 00:28 yc4_import.php
-rwx---rwx. 1 apache apache 25376 Oct 30 00:28 yc4_import_run.php
Any helpful comments would be highly appreciated.
Thnaks in advance.
 
Old 11-14-2015, 08:08 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,678
Blog Entries: 10

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
707 perms in /var/www/html/testserver.info/ ?

See also
Code:
DocumentRoot /var/www/html/testserver.info
...
    <Directory /var/www/html/goldenpen>
 
1 members found this post helpful.
Old 11-14-2015, 08:15 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Habitual/

Thanks a lot!
 
Old 11-20-2015, 05:21 PM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,678
Blog Entries: 10

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
You are very welcome.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(SOLVED) "Error 403: Forbidden" when trying to download files from linuxfromscratch.org sdraw108 Linux From Scratch 1 01-02-2013 02:15 PM
"lighttpd" giving 403 Forbidden error nishith Linux - Server 2 05-29-2010 12:32 PM
403 error on name virtual host thobson Linux - Server 7 09-30-2009 09:29 AM
Getting "403 Forbidden" error when trying to install Mahara/Dolphin on localhost f.user Linux - Server 3 09-06-2009 09:08 AM
Apache2 problem with virtual host always taking me to "It Works" mr.n Linux - Server 7 02-08-2009 09:12 PM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration