LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2013, 04:27 AM   #1
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Rep: Reputation: 0
Thumbs up cant access my website hosted in my server


Hello,

I have set up a webserver. I have stored the files in /var/www/html/mydir directory. When i try to access using my static ip i get the apache test page. How to link to my website stored in the path above mentioned to my static ip.

thanks in advance.
 
Old 07-25-2013, 07:10 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://static.ip/mydir perhaps?
 
Old 07-25-2013, 08:38 AM   #3
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
Thank for your answer...

Your answer is correct. I can access through that.. But there is a way to redirect static ip address to my directory where the files are stored... I dont know how... Two years back i did that but now i am not getting how to do it.
 
Old 07-25-2013, 09:03 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
In the httpd.conf or such, change the DocumentRoot to /var/www/html/mydir

Last edited by descendant_command; 07-25-2013 at 09:05 AM.
 
Old 07-25-2013, 01:37 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
In the httpd.conf or such, change the DocumentRoot to /var/www/html/mydir
or move your content(s) one directory "up" from mydir ... ie, /var/www/html
then http://static.ip will work also without modification to the httpd.conf
 
Old 07-25-2013, 09:02 PM   #6
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
Ok i ll try these and let you know the status...
thanks
 
Old 07-26-2013, 08:00 AM   #7
sudeep_mansh
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 0
hello

it worked. i changed the document root to my directory.

Thanks a lot.
 
  


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
write access in .htaccess file on hosted server rblampain Linux - Software 2 04-23-2011 09:13 AM
Issue with website hosted on Virtual Redhat Server. geekgadget Linux - Virtualization and Cloud 1 12-11-2010 09:11 AM
viewing an externally hosted website from within a given website andrews-mark Linux - Server 6 10-07-2008 12:11 AM
set up proxy server on hosted website secretlydead Linux - Server 1 09-06-2008 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:39 PM.

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