- ARTS
- COMPUTERS
- INTERNET
- HOME
- RECREATION
- SOCIETY
- PRIVATE
- PROJECTS
My server has A LOT of Internal Dummy Dummy Connections in the form of:
127.0.0.01 – - [date] "OPTIONS * HTTP/1.0" 200 -
These seem to be Internal Dummy Connections: http://wiki.apache.org/httpd/InternalDummyConnection Submit (i am running Apache/2.2.3 (CentOS) so I ALSO need to upgrade so it seems but that is uhm very difficult when Plesk is installed and there are dependencies that I do not even know of).
And they happened after I changed the host file on my Linux Server (etc/hosts). I changed the hosts file to 2 lines instead of one because otherwise the WordPress Cron functionality would not run (see http://bradt.ca/archives/fix-wordpress-missed-schedule-error-on-media-temple-dv-plesk/ 1/3) which has todo with plesk (http://www.fdcservers.net/vbulletin/archive/index.php/t-1018.html Submit).
127.0.0.1 localhost localhost.localdomain
205.186.136.89 farmvillechicken.com farmvillechicken
Directly after making these changes the internal Dummy Connections started entering my /var/log/httpd/access_log ‘s
The Apache Help page says the following:
If you wish to exclude them from your log, you can use normal conditional-logging techniques. For example, to omit all requests from the loopback interface from your logs, you can use
SetEnvIf Remote_Addr "127\.0\.0\.1" loopbackand then add env=!loopback to the end of your CustomLog directive.
However… the "normal conditional logging techniques" are unknown to me… Via
http://httpd.apache.org/docs/2.0/mod/mod_log_config.html 0/78 I think the CustomLog line is correct:
SetEnvIf Remote_Addr "127\.0\.0\.1" loopbackLogFormat "%h %l %u %t \"%r\" %>s %b" commonLogFormat "%{Referer}i -> %U" refererLogFormat "%{User-agent}i" agentCustomLog logs/access_log common env=!loopbackCustomLog logs/referer_log referer env=!loopbackCustomLog logs/agent_log agent env=!loopback
So let’s add that to /etc/httpd/conf/httpd.conf and run /usr/sbin/apachectl configtest:
Syntax error on line 485 of /etc/httpd/conf/httpd.conf:SetEnvIf regex could not be compiled.
(to show line number in vi you can use ":set number")
ah… I forgot to put a "." before the "1" in the regex…. save: Syntax OK.
Let’s reboot by doing a /etc/init.d/httpd restart and then check the log files.
GRBML! It did not work. Let’s head for a forum Submit.
I heard about OpenGoo 8/21K, a webapplication which you can host at your own server and basically let’s you do the “office” things: contacts, todo, documents, spreadsheets, calender, task, links, and so on.
Although it probably lacks a lot of features this might be handy to install in our household. I really like to have all my data within my own household and I believe distributed everything is basically the way to go.
The main problem are the memory demands, it requires really some MB’s while my Synology CS 407 is already running uhm… a lot.
But let’s try anyway.
|
- Download the zip file from the SourceForge site - Just copy to your /web directory - Open the installation page by just typing in the url of the place you copied it to (e.g. http://cubestation/doc) - You get a nice message and have to click next |
|
- The next page warns you about “simplexml extension Submit is not installed” - According to Synology Submit however this extension is not available yet in their default php release (no libxslt.so). However I read about some “hack” : “install a second apache with a full enabled PHP —> ipkg install php-apache”. Some questions pop in my mind now… ah…. what the heck. |
|
CubeStation> ipkg list php* |
ipkg list php* hmmm… CubeStation> ipkg install php-apache |
| 1) vi /opt/etc/apache2/httpd.conf
(in /opt/lib/php/extensions is now the needed xsl.so) (also change all libexec/bla.so to /opt/libexec/…) Then edited the portnumber to 81 and changed the default webpath. 2) run /opt/sbin/httpd –k start |
and we are running another instance on port 81:
|
The webserver out-of-the-box works great on the NAS but it was not so handy that I only had 1 documentroot, meaning: http://cubestation Submit and http://cubestation/leau Submit would both have as root http://cubestation Submit. This is unhandy because I have seperate sites on the cube which have html code that is often relative to the root. Meaning: I have to rewrite the code or use some hacks.
However, with the help of synology.nl forum Submit and the help of Patrick on the synology.com forum Submit I managed to get it working.
I edited /usr/syno/apache/conf/httpd.conf-user and uncommented the virtual hosts line:
Include conf/extra/httpd-vhosts.conf
Then I added the conf/extra/httpd-vhosts.conf and added 1 subsite to test “leau.cubestation” :
NameVirtualHost *:80
<VirtualHost *:80>
ServerName cubestation
DirectoryIndex index.php index.html index.htm index.shtml
DocumentRoot /var/services/web
<Directory “/var/services/web”>
AllowOverride all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName leau.cubestation
DirectoryIndex index.php index.html index.htm index.shtml
DocumentRoot /var/services/web/leau
<Directory “/var/services/web/leau”>
AllowOverride all
</Directory>
</VirtualHost>
And then I added this new subsite to the /etc/hosts file:
127.0.0.1 localhost
192.168.1.70 CubeStation
192.168.1.70 leau.cubestation
After a reboot it works perfectly from my browser. I can now add all other websites as virtual roots to the cubestation without needing domain names.
