LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-17-2014, 11:04 PM   #1
lahirushanaka
Member
 
Registered: Oct 2012
Posts: 46

Rep: Reputation: Disabled
Apache giving 403 error on ubuntu


HI,

I have setup vhost for the one on my site, So when it is accessing http://ggal.sara.shh.com/eyeappointment/ givine 403 error, please give me a advice for this for resolve this ? i have give 777 for eyeappointment directory still no luck. below is my configurations.

<VirtualHost *:80>
ServerAdmin sysadmin@uber.biz
DocumentRoot /home/deploy/ggal/public_html
ServerName ggal.sara.shh.com
<Directory /home/deploy/ggal/public_html>
AuthType basic
AuthName "private area"
AuthUserFile /home/deploy/.passwords
<LimitExcept POST>
Require user ggal
</LimitExcept>
# Require user ggal
</Directory>
ErrorLog /home/deploy/ggal/log/error.log
CustomLog /home/deploy/ggal/log/access.log combined
</VirtualHost>


.htacess

SetEnvIf Host ggal\.sara\.shh\.com
MAGE_RUN_CODE=base
SetEnvIf Host ggal\.sara\.shh\.com
MAGE_RUN_TYPE=website



###########################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi

# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
# php_flag cgi.fix_pathinfo on

############################################
## this line is specific for 1and1 hosting

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

############################################
## default index file

DirectoryIndex index.php index.html

## LANDING PAGES

## DirectoryIndex index.html

<IfModule mod_php5.c>

############################################
## adjust memory limit

php_value memory_limit 256M
php_value max_execution_time 18000

############################################
## disable magic quotes for php request vars

php_flag magic_quotes_gpc off

############################################
## enable resulting html compression

php_flag zlib.output_compression on

</IfModule>

<IfModule mod_deflate.c>

############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary

</IfModule>

<IfModule mod_ssl.c>

############################################
## make HTTPS env vars available for CGI mode

SSLOptions StdEnvVars

</IfModule>

<IfModule mod_rewrite.c>

############################################
## enable rewrites
Options +FollowSymLinks
Options -Indexes
RewriteEngine on

############################################
## you can put here your magento root folder
## path relative to web root

# RewriteBase /

############################################
## workaround for HTTP authorization
## in CGI environment

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

############################################
## always send 404 on missing files in these folders

# RewriteCond %{REQUEST_URI} !^/(server-status)

RewriteCond %{REQUEST_URI} !^/(media|skin|js)/


#RedirectMatch 301 www.dsadasdsad.com
http://www.ggal.com/safety/
RewriteCond %{HTTP_HOST} ^(www.)?www.dsadasdsad.com $
RewriteRule ^(.*)$ http://www.dsadasdsad.com /safety [L]



############################################
## never rewrite for existing files, directories and links

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

############################################


</IfModule>


############################################
## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead

AddDefaultCharset Off
#AddDefaultCharset UTF-8

<IfModule mod_expires.c>

############################################
## Add default Expires header
## http://developer.yahoo.com/performan...s.html#expires

ExpiresDefault "access plus 1 year"

</IfModule>

############################################
## By default allow all access

Order allow,deny
Allow from all
<Files RELEASE_NOTES.txt>
order allow,deny
deny from all
</Files>
###########################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags

#FileETag none



Can some one help me ?

Last edited by lahirushanaka; 04-17-2014 at 11:25 PM.
 
Old 04-18-2014, 03:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

FYI, it works from here.

Cheers
 
Old 04-18-2014, 03:57 AM   #3
lahirushanaka
Member
 
Registered: Oct 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Hi,

FYI, it works from here.

Cheers
I resolve the issue, any way it wan on .htaccessed there was some issue.
 
Old 04-18-2014, 08:20 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by lahirushanaka View Post
i have give 777 for eyeappointment directory still no luck. below is my configurations.

Can some one help me ?
Yes, here's some help. 777 NEVER 'fixes' anything. Stop that, it's a terrible habit.
 
Old 04-18-2014, 09:18 AM   #5
lahirushanaka
Member
 
Registered: Oct 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Yes, here's some help. 777 NEVER 'fixes' anything. Stop that, it's a terrible habit.
Yes that is relay true, i have remove 777 and put 755 for that directory.
 
  


Reply



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
Nginx giving a 403 error. I don't know what's wrong. arco123 Linux - Server 2 02-08-2011 02:34 AM
Apache and Named Virtual Hosts Giving 403 Forbidden Error durus123 Linux - Server 1 09-05-2009 05:24 AM
Apache and Named Virtual Hosts Giving 403 Forbidden Error PekinSOFT Linux - Server 2 04-15-2009 01:07 AM
Apache is giving me 403 when changing DocumentRoot Lazy Foo' Linux - Software 7 01-30-2006 08:39 PM
Apache giving mysterious 403 Forbidden ktvoelker Linux - Software 5 03-14-2005 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:34 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
Open Source Consulting | Domain Registration