Link to home
Start Free TrialLog in
Avatar of Simon Leung
Simon Leung

asked on

Configure Apache

How to configure Apache server such that access to the public ip of the server will automatically redirect me to the ./web/index.php

vhost.conf
<VirtualHost *:80>
    ServerAdmin mis@abc.com
    ServerName abc.com
    ServerAlias www.abc.com
    DocumentRoot /var/www/html/mec/
    ##ErrorLog /var/www/html/example.com/logs/error.log
    ##CustomLog /var/www/html/example.com/logs/access.log combined
</VirtualHost>

Thx
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
change  ServerName abc.com
   to  ServerName IP address