Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 500
  • Last Modified:

linux apache2

Hello
I created a folder "cms" in /var/www/cms/index.html

But problem is i cant see index.html but when i take this index.html /var/www/index.html
then i can see contents in index.html.
I did /apache2/sites-available/default

----------------------------------
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/cms/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>


where is the problem?
Thanks
0
linuxdebian
Asked:
linuxdebian
1 Solution
 
santoshmotwaniCommented:
have you checked permissions on cms ?

it should be 755

sudo chmod -R 755 /var/www/cms/

please try this
0
 
linuxdebianAuthor Commented:
hi
i did 777 before.still there is something i do not understand
0
 
farzanjCommented:
You should not use 777.  If there is SELinux it would create problem.  Just a note, though not related to this problem.

TRY

        <Directory /var/www/cms>
                Options Indexes FollowSymLinks
                AllowOverride None
        </Directory>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now