LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-02-2015, 06:20 PM   #1
donaldfarkas
LQ Newbie
 
Registered: Sep 2010
Posts: 18

Rep: Reputation: 0
Web Server: Index Of


I'm have a Ubuntu webserver which I have installed xcart website in /var/www/html/xcart/

When I go to my domain for example "www.example.ca" I get an Index of
http://i.imgur.com/FEihr4i.png

If i click on the xcart link the website loads perfectly.

How do i fix it so when i go to "www.example.ca" it automatically loads xcart instead of showing Index Of?

Thanks in advanced guys!!!
 
Old 06-02-2015, 06:52 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Web Server: Index Of

You need to edit the Web Server configuration so that the document root coincides with the location of your files.

Assuming you are using Apache, here is the documentation for doing so on Ubuntu:

https://help.ubuntu.com/lts/serverguide/httpd.html

The following will also be helpful :

https://www.digitalocean.com/community/tutorials/how-to-configure-the-apache-web-server-on-an-ubuntu-or-debian-vps
 
Old 06-02-2015, 06:54 PM   #3
donaldfarkas
LQ Newbie
 
Registered: Sep 2010
Posts: 18

Original Poster
Rep: Reputation: 0
I am using apache I will take a look at the links you have provided and I will get back on here if I have any further questions.
 
Old 06-02-2015, 07:27 PM   #4
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by donaldfarkas View Post
I am using apache I will take a look at the links you have provided and I will get back on here if I have any further questions.
If xcart is the only web application you are running, you could also move everything to /var/www instead of where you have the files copied to.
 
Old 06-02-2015, 09:43 PM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
You can use .htaccess to hide the subdirectory url. http://stackoverflow.com/questions/2...after-redirect
 
1 members found this post helpful.
  


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
Apache requires index.php. The requested URL /index.php was not found on this server chefarov Linux - Server 4 07-30-2014 02:29 AM
Python IndexError: list index out of range (Web Scrapper) zcrxsir88 Programming 7 02-19-2011 04:44 AM
Edit index.html file of apache web server sanketpatel.86 Linux - Software 3 08-17-2010 12:34 AM
Directory index of web folder Swakoo Linux - Newbie 3 06-17-2005 04:28 AM
web server dont start index.php Kanon Linux - Software 4 03-04-2005 03:36 AM

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

All times are GMT -5. The time now is 11:05 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