LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-23-2010, 03:02 AM   #1
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
http issues


I am having some baffling issue viewing a directory , I am pretty sure its a easy fix but I dont know what else to do after 2 days.

I have a linux box and created a folder in the webroot direct and the virtual directory in httpd.conf, however when I visit the directory from browser, 200.0.0.0/~test/index.html it shows sometimes and when I refresh it shows page error, I see no error in error logs, I am sure its a permissions issue but directory is 777 and owner is correct.

Please help
 
Old 12-23-2010, 08:50 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

What you mean by virtual directory?
Also posting httpd.conf could be helpful to diagnose what is the problem

Regards
 
Old 12-23-2010, 02:56 PM   #3
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
Sorry I meant virutal host

<VirtualHost *>
ServerName www2.domain.net
ServerAlias www2.domain.net
DocumentRoot /var/www
ServerAdmin su@domain.net
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
</VirtualHost>
 
Old 12-23-2010, 04:25 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

So you mean that you have created /var/www/~test?
Using a tilde in front of a directory name, like ~test, means that apache will try to serve a page from the public_html directory of the user test, using mod_userdir.
Why don't you name the directory just plain test, so you can access it using http://200.0.0.0/test/index.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: http://localhost (work) http://ipaddress (not working) sarmad Linux - Newbie 7 02-05-2013 07:47 AM
How to block HTTP requisitions with invalid/blank http referer field brgsousa Linux - Software 2 10-18-2010 02:49 PM
[SOLVED] Adding package sources fails saying "http://http not found skykooler Ubuntu 2 07-02-2010 09:32 AM
[SOLVED] cups printer install (http://localhost:631/) has root/pw issues Asinine Slackware 4 09-10-2009 09:19 AM
https vs http: Creating canonical issues Linux Server seopractices Linux - Server 1 07-23-2008 11:35 AM

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

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