- Registriert
- 21.05.04
- Beiträge
- 372
Hallo!
Ich hab mir heute karatasi (ein Vokael App für´n iPod Touch/iPhone) runtergeladen und möchte das wie vorgeschlagen synchronisieren: http://karatasi.wiki.sourceforge.net/install_sync_en. Die Dateien gibts hier. Da ich noch Tiger(.11, intel) hab (und damit apache1) hab ich die make_web.sh angepasst:
Das Problem ist der letzte teil der in die httpd.conf eingefügt wird:
sobald das drinn ist kann man nicht mehr auf die localhost Seite zugreifen (httpd ist gestartet, einmal aus root & einmal als www), mit meinem iPod kann ich mich auch nicht verbinden! Hat jemand ne Idee worans liegt?!
Ich hab mir heute karatasi (ein Vokael App für´n iPod Touch/iPhone) runtergeladen und möchte das wie vorgeschlagen synchronisieren: http://karatasi.wiki.sourceforge.net/install_sync_en. Die Dateien gibts hier. Da ich noch Tiger(.11, intel) hab (und damit apache1) hab ich die make_web.sh angepasst:
Code:
#!/bin/sh
############################
# This file is part of the karatasi project.
#
# Copyright 2009 Christa Runge, Mathias Kussinger
#
# karatasi is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# karatasi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with karatasi. If not, see <http://www.gnu.org/licenses/>.
############################
#
# Usage: sudo ./make_web.sh username password
HTTP_STORE="/Store/httpd/karatasi"
HTTPD_CONF="/private/etc/httpd/httpd.conf"
HTTPD_WWW_GROUP="www"
if [ -z "$2" ]
then
echo "Usage: sudo ./make_web.sh username password"
exit
fi
## create dirs
install -d "$HTTP_STORE/data"
install -d "$HTTP_STORE/cgi-bin"
install -d "$HTTP_STORE/data/$1"
chown $HTTPD_WWW_GROUP $HTTP_STORE/data/$1
## copy cgi's and brand with data directory path
cp download.cgi list.cgi upload.cgi $HTTP_STORE/cgi-bin
mv $HTTP_STORE/cgi-bin/download.cgi $HTTP_STORE/cgi-bin/download.cgi.tmp
cat $HTTP_STORE/cgi-bin/download.cgi.tmp | sed -e 's+\#\#datadir\#\#+'$HTTP_STORE'/data/+1' > $HTTP_STORE/cgi-bin/download.cgi
rm $HTTP_STORE/cgi-bin/download.cgi.tmp
chmod ugo+x $HTTP_STORE/cgi-bin/download.cgi
mv $HTTP_STORE/cgi-bin/upload.cgi $HTTP_STORE/cgi-bin/upload.cgi.tmp
cat $HTTP_STORE/cgi-bin/upload.cgi.tmp | sed -e 's+\#\#datadir\#\#+'$HTTP_STORE'/data/+1' > $HTTP_STORE/cgi-bin/upload.cgi
rm $HTTP_STORE/cgi-bin/upload.cgi.tmp
chmod ugo+x $HTTP_STORE/cgi-bin/upload.cgi
mv $HTTP_STORE/cgi-bin/list.cgi $HTTP_STORE/cgi-bin/list.cgi.tmp
cat $HTTP_STORE/cgi-bin/list.cgi.tmp | sed -e 's+\#\#datadir\#\#+'$HTTP_STORE'/data/+1' > $HTTP_STORE/cgi-bin/list.cgi
rm $HTTP_STORE/cgi-bin/list.cgi.tmp
chmod ugo+x $HTTP_STORE/cgi-bin/list.cgi
## make pw file
echo "$2" > $HTTP_STORE/data/$1/.token.txt
chown $HTTPD_WWW_GROUP $HTTP_STORE/data/$1/.token.txt
## add to httpd.conf
cat $HTTPD_CONF | sed -e '/^\#\#\#\#karatasi_a/,/^\#\#\#\#karatasi_e/d' > $HTTPD_CONF.new
if [ -n "`grep 'Listen 9999' $HTTPD_CONF.new`" ]
then
rm "$HTTPD_CONF.new"
echo "Port 8888 already in use! Add manually to $HTTPD_CONF."
exit
fi
cp "$HTTPD_CONF" "$HTTPD_CONF.old"
cat << EOT >> $HTTPD_CONF.new
####karatasi_a
Listen 8888
<VirtualHost *:8888>
DocumentRoot /Store/httpd/karatasi/data
ServerName localhost
ErrorLog "/private/var/log/httpd/karatasi_error_log"
CustomLog "/private/var/log/httpd/karatassi_access_log" common
<IfModule mod_alias.c>
Alias /karatasi/ /Store/httpd/karatasi/data/
ScriptAlias /cgi-bin/ /Store/httpd/karatasi/cgi-bin/
</IfModule>
<Directory /Store/httpd/karatasi/data>
Options Indexes FollowSymLinks Includes +Multiviews
AllowOverride All
order deny,allow
deny from all
allow from localhost
</Directory>
<Directory "/Store/httpd/karatasi/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
####karatasi_e
EOT
# write apace2 config and restart apache
cat $HTTPD_CONF.new > $HTTPD_CONF
apachectl graceful
Das Problem ist der letzte teil der in die httpd.conf eingefügt wird:
Code:
####karatasi_a
Listen 8888
<VirtualHost *:8888>
DocumentRoot /Store/httpd/karatasi/data
ServerName localhost
ErrorLog "/private/var/log/httpd/karatasi_error_log"
CustomLog "/private/var/log/httpd/karatassi_access_log" common
<IfModule mod_alias.c>
Alias /karatasi/ /Store/httpd/karatasi/data/
ScriptAlias /cgi-bin/ /Store/httpd/karatasi/cgi-bin/
</IfModule>
<Directory /Store/httpd/karatasi/data>
Options Indexes FollowSymLinks Includes +Multiviews
AllowOverride All
order deny,allow
deny from all
allow from localhost
</Directory>
<Directory "/Store/httpd/karatasi/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
####karatasi_e
sobald das drinn ist kann man nicht mehr auf die localhost Seite zugreifen (httpd ist gestartet, einmal aus root & einmal als www), mit meinem iPod kann ich mich auch nicht verbinden! Hat jemand ne Idee worans liegt?!