LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache related questions (http://www.linuxquestions.org/questions/linux-server-73/apache-related-questions-536599/)

The_eXXe 03-11-2007 02:15 PM

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? :D 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? :scratch:

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". :confused:

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.

rch1231 03-14-2007 12:46 AM

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.


All times are GMT -5. The time now is 06:04 PM.