[Macpartners] Personal Web Sharing under Panther (10.3.2)

Carolyn Fuller fuller at MIT.EDU
Fri Jan 16 18:36:39 EST 2004


Al,

Those are Jaguar pages and I'm on Panther. I suspect that things are  
somewhat similar but enough has changed to warrant an update.

I posted my mail on the Apple discussion board and got back very  
specific Jaguar instructions on how and what to modify in the config  
file. Between the Jaguar instructions and help from my husband and  
colleagues in my office, I was able to get things working in Panther.

So in case others encounter the same problems in Panther:

1) If Apache finds an index.html in the directory, it will be used,  
otherwise, it will use index.html.en. When I first upgraded to OS X, I  
don't think this worked, but it works today.

2) The Apache config file that needs to be changed is the file,  
System/Library/Perl/5.8.1/darwin-thread-multi-2level/Apache/ 
httpd_conf.pm. But you can't change it without root privileges. (If you  
are running under Jaguar, the file is /etc/httpd/httpd.conf.)

3) From Terminal, I typed the following:

sudo pico  
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/Apache/ 
httpd_conf.pm

It asked for the root password, which I supplied.

Control/W brought up a search command line. I typed ServerName into the  
search command. The first text that appeared was:

sub server_url {
     no strict;
     require URI::URL;
     my $url = URI::URL->new();
     $url->scheme('http');
     $url->host($Apache::ReadConfig::ServerName || "localhost");
     $url->port($Apache::ReadConfig::Port || 80);
     return $url;
}

I was able to use the arrow keys to navigate  the "localhost" and typed  
"fuller.mit.edu" in front of "localhost".

I then used the "delete" button to delete "localhost"

Control/W brought me back to the search command line and I was able to  
find the next occurrence of ServerName:

$ServerName = "localhost";

Again, I replaced "localhost" with "fuller.mit.edu".

Control/O followed by a return replaced the file.

I then needed to restart my Mac in order to restart Apache (Under  
Jaguar, you can either turn Web Sharing off and on again or issue the  
following command in the Terminal: sudo apachectl graceful).

Everything seems to be working now.

Carolyn


On Jan 16, 2004, at 5:03 PM, Albert Willis wrote:

> Check out  
> http://www.macdevcenter.com/pub/a/mac/2003/05/09/ 
> apache_jaguar_pt4.html which explains a lot of what you want to know  
> about.
>
>   -- Al
>
> On Jan 16, 2004, at 1:34 PM, Carolyn Fuller wrote:
>
>> Hi,
>>
>> I'm hosting a web site on my Mac G4 using Personal Web Sharing under  
>> Panther (10.3.2) with web pages placed into  
>> Library/WebServer/Documents.
>>
>> I have two problems that I've been told are related:
>>
>> 1) Library/WebServer/Documents/index.html is not recognized as my  
>> home page. But Library/WebServer/Documents/index.html.en is  
>> recognized as the home page.
>>
>> 2) If I click a link from my home page the URL is converted from my  
>> IP Address name (fuller.mit.edu) to "fuller.local" which works from  
>> any computer on our LAN but breaks from elsewhere.
>>
>> I've been told I need to modify my Apache config file to recognize  
>> index.html and that this will fix the "local" problem. It will also  
>> protect my home page from being overlaid when a new version of Apache  
>> is installed!
>>
>> I think I've found the config file:
>>
>> System/Library/Perl/5.8.1/darwin-thread-multi-2level/Apache/ 
>> httpd_conf.pm
>>
>> Is this the right file? If so, what do I modify?
>>
>> Thanks,
>>
>> ---
>> Carolyn Fuller
>> Massachusetts Institute of Technology
>> Information Services and Technology
>> Administrative Computing
>> Senior Analyst/ Programmer
>> (617) 253-6213
>> http://fuller.mit.edu/
>>
>> _______________________________________________
>> Macpartners mailing list
>> Macpartners at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/macpartners
>
> _______________________________________________
> Macpartners mailing list
> Macpartners at mit.edu
> http://mailman.mit.edu/mailman/listinfo/macpartners
>

---
Carolyn Fuller
Massachusetts Institute of Technology
Information Services and Technology
Administrative Computing
Senior Analyst/ Programmer
(617) 253-6213
http://fuller.mit.edu/



More information about the Macpartners mailing list