Jason210
asked on
Apache Web Server - How to change URL default directory / webpage?
Hi
Just set up a LAMP stack. Default web page is index.html found in:
var/www/html
but I want to change it to:
var/www/html/web_applicati on/index.p hp
Can anyone advise?
Thanks
Jason
Just set up a LAMP stack. Default web page is index.html found in:
var/www/html
but I want to change it to:
var/www/html/web_applicati
Can anyone advise?
Thanks
Jason
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you restarted the apache services?
just edit /sites-available/default
Quote:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
and comment out #RedirectMatch ^/$ /apache2-default/
http://forums.vpslink.com/debian/496-apache2-default-how-change.html
Quote:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
and comment out #RedirectMatch ^/$ /apache2-default/
http://forums.vpslink.com/debian/496-apache2-default-how-change.html
# you missed the leading / in
DocumentRoot to /var/www/html/moodle
DocumentRoot to /var/www/html/moodle
Hi,
Could you please which version of Linux that you are using and how you installed Apache(Rpm/Tar/deb)?
Jay
Could you please which version of Linux that you are using and how you installed Apache(Rpm/Tar/deb)?
Jay
ASKER
It's deployed as an image using Amazon Web Services. The image is working fine, but I have this splash screen that I want to avoid.
So I edit the httpd.conf file by changing these lines.
DocumentRoot "/path/to/index/page"
<Directory "/path/to/index/page">
Obviously substituting that with real information.
The funny thing is it works until I reboot the server (which I do when I make an image) and the it just craters with error 500.
This is Unbuntu 10.04, and Apache2.
@ahoffman - I didn't miss the leading slash on the conf file.
So I edit the httpd.conf file by changing these lines.
DocumentRoot "/path/to/index/page"
<Directory "/path/to/index/page">
Obviously substituting that with real information.
The funny thing is it works until I reboot the server (which I do when I make an image) and the it just craters with error 500.
This is Unbuntu 10.04, and Apache2.
@ahoffman - I didn't miss the leading slash on the conf file.
ASKER
It seems that it's the application that is causing this error, the index.php file in the moodle folder.
As a test, I dropped an ordinary index.html file in there it worked.
As a test, I dropped an ordinary index.html file in there it worked.
ASKER
/etc/httpd/conf/httpd.conf
In there i changed the DocumentRoot to var/www/html/moodle
Moodle is the web application folder. However, it does not seem to be working. Is there anything else that needs changing in this appache configuration file?