Looks good. That is because DirectoryIndex is not set properly. So Apache don't know index.html should be displayed..
Can you make index.php and see if it works ?
Looks good. That is because DirectoryIndex is not set properly. So Apache don't know index.html should be displayed..
Can you make index.php and see if it works ?
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
i got same result
![]()
Post result of following command
Code:cat /etc/apache2/mods-available/dir.conf
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
That looks good. Not sure why it is not showing index.php Anyway lets try following
Update your VirtualHost entry in ~/conf/vhosts.conf as follows
The change is, we added the lineCode:<VirtualHost 127.0.0.1:80> ServerName imagehostnow.dev SetEnv APP_ENV "dev" DocumentRoot /home/YOUR_USER_NAME_HERE/www/imagehostnow.com/public CustomLog ${APACHE_LOG_DIR}/imagehostnow.dev.log combined DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm <Directory "/home/YOUR_USER_NAME_HERE/www/imagehostnow.com/public"> Options All AllowOverride All Require all granted Order allow,deny allow from all </Directory> </VirtualHost>
Below CustomLog line.Code:DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
Restart Apache. Go to web site and see if it shows index.php file instead of directory listing.
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
I have done the same, restarted apache.But still same.
Run following command and post result
Also, restart apache, see if problem fixed.Code:sudo a2enmod dir
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Bookmarks