LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-11-2007, 02:15 PM   #1
The_eXXe
Member
 
Registered: Mar 2004
Location: TR
Distribution: Ubuntu 9.04 (x64)
Posts: 62

Rep: Reputation: 15
Apache related questions


hi,

I have some questions about configuring apache.

First of all, I am using openSUSE 10.2 x64
I have installed default apache 2.2.3 which comes with distro.
first question:
I was looking the configuration files and i saw there is a file mod_userdir.conf. I opened it and looked what is inside.. They say this module enables users to run their own web sites from their public_html folder. I wanted to enable this feature and add these line in mod_userdir.conf file

Code:
UserDir public_html
UserDir enabled
and restarted apache
when i typed, http://localhost/~beloveds

beloveds is the username. apache says:
Code:
Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
Sun Mar 11 20:49:13 2007
Apache/2.2.3 (Linux/SUSE)
so, what is wrong?
Should i re-install module or i dont know invoke something?
or should i run this module?
Any comments?

Second question:
I was reading about virtual host on apache. It says it is used for managing two or more web site on a single host. They say i got two options:
1-same name, different IPs
2-same ips, different names

I am a little confused here. Our ip's are assigned by DHCP. so if i want to use virtual host how can i have two ip numbers? I have googled it. and found that there is a system named IP masquerading, but it seems too complicated to achive this. Secondly, if i want to use same ip different names, what are these names? domain names?

Let me tell you, what i am trying to do..
I have installed Joomla in my linux box, which is in /srv/www/htdocs

what if i want to install another CMS system? and want to these two sites works at the same time?

I have tried to put second web page in /srv/www/htdocs/nuke but when i want to open web page http://localhost/nuke
it says i dont have permission. (I made all the files readable, writable, executable for all users, groups; shortly 777)

And another questions. What should be the permissions of the files in the htdocs folder in order to have much more security.

Third question:
I am wondering what these DNS server does? I actually know what it does? but i dont know how this works. I want to install a mail server to my linux-box on the local area network. and give some accounts to my friends and try to learn how these things works. but let say if i do this, does accounts are going to be like "somename@172.16.4.250".

forth question:
Is there any FTP server, that is more customizable than vsftpd? and easy to configure?

Any comment on these questions will be greatly appriciated.
 
Old 03-14-2007, 12:46 AM   #2
rch1231
Member
 
Registered: Mar 2007
Location: Bedford, Texas
Posts: 31

Rep: Reputation: 15
Take a look at your apache logs specifically the error log and it will tell you if it made it to the server and what exact page it was looking for.

Things to check:

Is there a file:
/home/beloveds/public_html/index.html

Does the nobody user have permission to view the files? The permissions of /home/beloved/public_html should be 755 (aka rwxr-xr-x ) or something along those lines.

Did you restart apache after you made changes to the mod_userdir.conf file?

service httpd restart

or

/etc/rc.d http restart

One of them should restart it.
 
  


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
basic questions on hostname and domain name + related postfix questions Moebius Linux - Newbie 7 09-04-2007 11:50 AM
two security related questions krock923 Linux - Security 2 04-28-2006 04:41 PM
3 non-related questions Rognon Slackware 5 02-06-2004 04:45 PM
2 questions related to my network and apache bruhv-ahh Mandriva 3 10-15-2003 12:47 PM
some daemon-related questions Vincent Slackware 3 09-21-2003 02:15 PM

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

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