Help configuring Apache

Asked by Paul Newton

Hi all. Thank you for all the great work you do with schooltool!

I am deploying schooltool on a dedicated server. Things are working well, and I have access from all computers in my school using my web address 192.168......:7080

Here is my problem. I am attempting to have apache link the address to something more easy to remember for the teachers, but I am having a bit of difficulty. I have it configured now that from the SERVER itself I can browse to schooltool.myschool.org, but it doesn't work from the other computers.

I had initially modified the host name in paste.ini to read 0.0.0.0, but the instructions said not to do that if I was using Apache to configure the web server. I am at a loss. Here are my config files:

# Apache configuration for SchoolTool
#
# Place it in /etc/apache2/sites-available/school1.example.org, run:
#
# $ sudo a2ensite school1.example.org
# $ sudo service apache2 reload
#
# If you add a line to /etc/hosts, reading
#
# 127.0.0.1 school1.example.org
#
# You can go to http://school1.example.org/
#
# Read more at http://book.schooltool.org/apache.html

<VirtualHost *:80>
    ServerName schooltool.mypumpkinpatch.org
    ServerSignature On

    ErrorLog /var/log/apache2/school1-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/school1-access.log combined

    <Proxy *>
            order allow,deny
            allow from all
            deny from none
    </Proxy>

    ProxyPass / http://127.0.0.1:7080/++vh++http:schooltool.mypumpkinpatch.org:80/++/

    # If you have set up SSL site below, you can comment out ProxyPass directive
    # above, and Redirect to the SSL site
   # Redirect / https://schooltool.mypumpkinpatch.org/

</VirtualHost>

# vim: setf apache

And my 'hosts' file:

127.0.0.1 localhost
127.0.1.1 oqro
127.0.0.1 schooltool.mypumpkinpatch.org

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Question information

Language:
English Edit question
Status:
Answered
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Paul Newton (paulallen-newton) said :
#2

Does anyone have any suggestions? I still haven't been able to figure this out.

Revision history for this message
Douglas Cerna (replaceafill) said :
#3

Paul:

If I understand you correctly, you've modified the /etc/hosts file in the server, correct?

That affects only *that* computer's routing ability (as a client). You can find stuff in the mapping (/etc/hosts) *from* the computer that has the file.

You could change all your clients /etc/hosts files the same way, but that's very annoying. An internal DNS server would be a better solution IMHO.

Can you help with this problem?

Provide an answer of your own, or ask Paul Newton for more information if necessary.

To post a message you must log in.