Ubuntu Servers :: Apache Include Hostname In Access.log And Error.log File Names?

Feb 8, 2010

I am sure this information is out there somewhere, but Googling apache access.log and hostname does not give you any good leads... so I hope someone here might be able to provide me with a quick answer...I am setting up a cluster of web servers, so I would like to name the access.log and error.log with the hostname of the individual servers to be able to distinguish one from another.

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Apache Setup For Hostname Access On Local Network

Apr 13, 2011

I have installed Ubuntu on four machines at work and have been blown away. On my machine I have Apache setup for web development and other machines can "see" it using my IP address. I would like to have it so they can access by the name of my computer though. I have no local DNS server so I guess I need to hard code the relationship in each machine? Ideally I'd actually like to be able to use subdomains (which I use locally to avoid annoying .htaccess path problems). i.e. from another machine on the network to go to [URL].

View 3 Replies View Related

Ubuntu Servers :: Apache HTML Include Files?

Aug 26, 2010

I seem to be unable to use the html

Code:
include virtual="test.txt" I have tried following the advice in this thread http://ubuntuforums.org/showthread.php?t=1510098 but it makes no difference. The file is there, but the line is delivered to the browser as-is. Using Lucid and a new install of apache 2.2 from the repository.

View 7 Replies View Related

OpenSUSE Network :: Apache Error Message - Request Without Hostname

May 4, 2010

Anyone know what this signifies in the Apache logs files:

Code:
[Tue May 04 20:56:06 2010] [error] [client *******] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 20:56:06 2010] [error] [client *********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)

View 2 Replies View Related

Fedora Servers :: Access Samba Share By Hostname From Win7

Mar 13, 2011

Running samba-3.5.6-71.fc14.x86_64. Why cant I access samba share by short-hostname from win7. When I ping short-hostname, the answer is the actual ip and short-hostname.mydomain.com

sa pinging short-hostname does work, but accessing it from start-run does not! Accessing by ip or short-hostname.mydomain.com works fine. ssh by short-hostname from win7 works fine too.

View 14 Replies View Related

Ubuntu Servers :: Webdav + Nautilus = Forbidden - DON'T Have "Options Indexes" In Apache Config File When Try To Access Via Firefox

Feb 20, 2010

I've installed webdav on my server and I can access it fine through cadaver. However, when I try to access it via nautilus, I get Forbidden. It is NOT secured (SSL). When I try to access it via firefox, I get an error since I DO NOT have "Options Indexes" in my apache config file. If I add this option in, then I can browse the root direction and webdav folder via firefox, but still not from nautilus. what other information you need. I've googled and searched the forums for awhile, but not "solutions" I found have worked for me. I want the webdav folder to just be a single folder within the direction, so this is how I have my config file setup:

[Code]....

As a side-note...when I included "Option Indexes", it allowed me to view the passwd.dav file from firefox!That doesn't seem very good...

View 4 Replies View Related

Ubuntu :: Error : Mount.nfs : Access Denied By Server While Mounting Hostname

Sep 20, 2010

I just built an AMD Phenom II Six Core with 4 Gigs Ram a 160Gib / and swap, and (2) Two Tb mirror for Raid (data storage) I had been using DMRAID in the deprecated box but this box has MDADM v3.1.4 - 31st August 2010 from source (on MDADM wikipedia).

I have no permission problems with using the raid and dmraid is un-installed. The raid is working perfectly and is mounted in my fstab with ext4 defaults 0 2 as my options.

I have two exports
/media/raid/Test
/test

Both show IP and subnet on the showmount -e for the server. I can mount the test just fine on the server. I cannot, however, mount the /media/raid/Test error: mount.nfs: access denied by server while mounting hostname:/media/raid/Test Using dmraid I am able to have the deprecated box export and mount nfs shares from the raid but using MDADM on the new computer, I cannot. I get similar results with pointing MYSQL's data folder to a location on the "/media/raid/Database" (even with apparmor entries).

View 1 Replies View Related

Fedora Servers :: Accessing Index File By Hostname?

Sep 6, 2011

I have my home network up and running. I can access my index file by the ip I gave to eth0 - 192.168.0.2

I put this same ip into etc/hosts:
192.168.0.2 localhost localhost.localdomain
One space separates the hostnames from the ip in /etc/hosts.
The hostname command returns: localhost.localdomain

I have /etc/resolv.conf configured the right way, so I can use my isp's DNS servers. I know this because yum works and I can ping anywhere by url. The next step is to learn to access the index file by url locally on my own network.

View 7 Replies View Related

Fedora Servers :: Gnome Error - Hostname: Unknown Host

Mar 23, 2009

I installed Gnome on my server by when I run

Code:

[root@F026 ~]# startx

Code:

hostname: Unknown host
xauth: creating new authority file /root/.serverauth.2915
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-128.1.1.el5 i686

[code]...

I don;t have physical access to the system and it is a server located in Europe. Fedora release 10 (Cambridge) is installed in it.

View 2 Replies View Related

Ubuntu Servers :: Apache Access Though VPN

Sep 1, 2010

just switched our company from windows server to linux and everything is going good except we have 4 vpn connections though out the country coming to our server. All giving the client machines ip addresses of 192.168.x.x based on where they are located 192.168.1.x for the main location 192.168.2.x for a second location etc, and IIS could see the clients ip instead of the wan ip and was setup to block all ips except 192.168.x.x ip's and this worked great.

So i set up apache the same way, to allow only 192.168 ip's but i guess it doesn't work that way in apache for connections coming though vpn? 2 out of our 4 VPN connections are not static IP's, so the 2 that are I just add that ip to the allow list and that worked.But i don't think we should HAVE to get static ips for the other 2, that's one of the benefits of using VPN, especially if our old windows server didnt need it.Is there any way for apache to see the clients ip address for access or is there something somewhere else that needs changed for this?

View 8 Replies View Related

CentOS 5 :: Apache Error 403 - "Forbidden You Don't Have Permission To Access /bb/ On This Server" - 5.2 With Apache 2.2.3

Jan 20, 2011

I am installing Big Brother on a CentOS 5.2 running the default Apache 2.2.3. When I try to access any web page I get the following error: Forbidden You don't have permission to access /bb/ on this server. Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80 So far I have:

1) Set the Directory options to FollowSymLinks
2) Verified all directory and file permissions are at 755
3) Set permissions temporarily to 777 and received same error so I am assuming the issue is in a config file somewhere
4) in hhtpd.conf verified <Files ~ "^.ht"> is correct
5) verified the "default" directory is correct (/var/www/html)

I have read and tried several ideas in posts listed on the web but to no avail and am at a loss as to what to look for next..

View 3 Replies View Related

Ubuntu Servers :: MySQL Incremental Backup - Binary Log File Names

Mar 15, 2011

I am currently using a script to backup my Ubuntu 10.04.1 system. The mySQL databases are backed up separately from the the system / data.

My problem is with the mySQL incremental / binary log backups.

The problem is that the binary log file(s) are always named xxxx-bin.1.

Up to about a month ago the binary logs were named xxxx-bin.000001, xxxx-bin.000002, etc.

I did make some changes at about the time that this change in file naming ocurred, but I can not identify what, if any, setting I may have changed that has caused all of the binary log files to always have the same name.

My back up script uses both mysqldump and mysqladmin flush-logs to create the binary logs.

All of the setting for mysqldump and mysqladmin are contained in the my.cnf file.

The my.cnf file contents that are relavent are as follows:

Code:

The statements in the backup script that do the backup are:

mysqladmin flush-logs

or

mysqldump | gzip > $DB_BACKUP_DIR/$ARCHIVE_FILE #Note: delete-master-logs in my.cnf

View 3 Replies View Related

Ubuntu Servers :: 8.04 - Apache Access Log Stopped

Mar 6, 2010

I am running an apache server thru webmin, on a 8.04 install. Attempting to install awstats I have realized that access.log stopped writing some months ago. Went back thru the error logs and found I had deleted the virtual server, and started a new one. Everything else works fine, it never even occurred to me that logging would not also be restarted. I would just like to get it going again, any clues???

View 5 Replies View Related

Ubuntu Servers :: Apache Log And Remotely Access Desktop

Mar 9, 2011

I came back to see on the screen a message requesting remote desktop control. So I said no and went into remote desktop and said never allow connection. I had recently hosted a PHP app on the home pc for testing purposes using apache. Here are some of the last logs entries:

Code:
127.0.0.1 - - [08/Mar/2011:18:26:34 -0500] "POST /z3950search.php HTTP/1.1" 200 1731 "http://localhost/z3950search.php" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15"
127.0.0.1 - - [08/Mar/2011:18:26:37 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15"
127.0.0.1 - - [08/Mar/2011:18:26:38 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15" .....

View 2 Replies View Related

Ubuntu Servers :: Can't Access Apache - Any Server Over My Primary Ip Address / Do That?

May 17, 2010

I have no idea what is going on here and this is the second time it has done this but. I just installed Lucid Lynx Desktop Edition for my Server. I have installed apache php5 mysql binarys. I have 3 ips on the machine 10.0.1.30, 10.0.1.37, 10.0.1.38. .30 is the main ip 10/100 the rest are 10,100,1000 ports. I can only access Apache 2.2 over .37 or .38 but not .30

I have not used Ubuntu alot but I am starting to and this really pisses me off since all my computer have aliases to the machine through .30

View 5 Replies View Related

Ubuntu Servers :: HTTP Response Into Apache Access Logs

Jul 6, 2011

I am new to web server support. I have a request from my management to modify the logging slightly. Effectively I need to redirect a custom string from our http response into the apache access logs. When a user navigates to our site they receive a "dye" number that is associated with them. This number follows them to whatever cluster they are directed too. The string is formatted as such, com-company-dye: d0a2#6dfce. I need that that header dye to appear in the access logs so we can use that dye number as a key for troubleshooting issues though out our various monitoring systems.

View 3 Replies View Related

Fedora Servers :: Shared Access With Samba And Apache

Mar 30, 2011

I'm trying to set up a computer to allow a specific samba user to access and write to a folder on the web-server without any luck. I've tried creating symbolic links in the users home to the folder (/var/www/html/something) on the web server and from the server to a directory in the users home but neither seems to work. I haven't seen any errors from SELINUX either but I'm kind of stuck. Also tried adding a directory section and alias line to the httpd.conf but after doing that apache wouldn't start so I'm not really sure how this would be done properly.

View 1 Replies View Related

Ubuntu Servers :: Apache Virtual Host To Access Internal Server?

Apr 20, 2010

I'm not sure is this is possible or not, but what I would like to do is take my public address mydomain.com and configure a virtual host something.mydomain.com only instead of having the content on the same server I would like it to point to the IP of my virtual machine that is in my private network and display that page publicly. Does anyone know if this is possible, or how to do it? I have done this with port forwards, but would like them both to be on the same port.

View 3 Replies View Related

General :: Apache Error Whenever I Access Page / Fix It?

Nov 20, 2009

I am getting this error whenever I access the page:

Code:
PHP Warning: fgets(): supplied argument is not a valid stream resource
Any idea whats all about?
I explored and found it permission issue.
I want to put a user call paul in apache group.Any idea how can I do that?

View 6 Replies View Related

General :: Cannot Access Dedicated Server - Apache Error Log

Jul 21, 2009

I was unable to access my dedicated server for few minutes. I have checked the apache error logs and found below notice:
[notice] caught SIGTERM, shutting down
I have tried to search from Google but could not find much information about this error.

View 2 Replies View Related

Fedora Servers :: Cannot Start Apache - No Read / Write Access To HTTP Files

Jan 14, 2009

I am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:

Code:
Summary:
SELinux prevented httpd reading and writing access to http files.

Detailed Description:
SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.

Allowing Access:
Changing the "httpd_unified" boolean to true will allow this access: "setsebool
-P httpd_unified=1"

Fix Command:
setsebool -P httpd_unified=1

I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it:
Code:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html index.html index.shtml index.php
</VirtualHost>

<VirtualHost 192.168.1.2:80>
SuexecUserGroup ulyaoth ulyaoth
ServerAdmin webmaster@ulyaoth.org
ServerName test.ulyaoth.org
DocumentRoot /var/www/ulyaoth/www/html
ErrorLog /var/www/ulyaoth/logs/error_log
CustomLog /var/www/ulyaoth/logs/access_log common
DirectoryIndex index.html index.htm index.shtml index.php
ScriptAlias /cgi-bin/ /var/www/ulyaoth/www/cgi-bin/
<Directory /var/www/ulyaoth/www/cgi-bin/>
AllowOverride none
Order allow,deny
Allow from all
Options +execCGI
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>

Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.

View 10 Replies View Related

General :: Extracting Text From File (Apache Access Log)

Apr 23, 2011

There are some log files that I wish to get some information from (Apache Access Log) but it is huge! All I need as of right now is any information from date and time A to date and time B. What commands can I use to extract this information from the access_log and put it into another file with just that information? I created a file called "access_info" by doing
Code:
touch access_info
but I was not sure where to go from there.

View 13 Replies View Related

Server :: Grant Apache Read Access To File?

Sep 22, 2010

I am trying to set up an ampache server using apache as the webserver. The instructions have the following line as one of the requirments: Your webserver has read access to the /sql/ampache.sql file and the /config/ampache.cfg.php.dist file..I have essentially zero experience with apache, and I'm not sure how to grant read access to a file.

View 1 Replies View Related

Ubuntu Servers :: Strange File Names - Getting Larger And Larger All The Time

May 3, 2011

Using Samba I have looked into the file that stores all my web sites, there were a few strange files that get larger and larger all the time. File names are _Za01716 and _Za01820, they are nearly 50mb in size now. I know these are not Log files so what are they and can I delete them?

View 1 Replies View Related

Fedora Servers :: 14 Apache Error 403?

Dec 24, 2010

I moved from F12 to F14, I've installed using yum Apache, MySql, php, phpMyAdmin. That all works fine, I've made index.php with phpinfo() function and if it is in /var/www/html/ it opens in web browser. I extracted daloradius-0.9-8 in /var/www/hmtl/daloradius folder changed ownership to apache:apache set alias to myradius. When I point web browser to localhost/myradius I get error 403, forbidden. I moved index.php with phpinfo() to daloradius (overwriting old index.php) and same stuff happens. Error 403. What am I doing wrong?

View 4 Replies View Related

Ubuntu Servers :: Changing Apache Port Gives Error

Jan 5, 2011

My ISP Blocks port 80 so I changed the port to 8081 after I do this and restart Apache and use my IP with :8081 after I get a page saying Not Found The requested URL /index.html was not found on this server. I get this same message if I use my real IP or the IP from my router. What can be causing this?

View 2 Replies View Related

Ubuntu Servers :: Apache 403 Error With Changed Www Root?

Feb 9, 2011

I don't know if this the right place to ask this question. If not excuse me.I installed apache server on my ubuntu and I've changed the www folder in etc/apache/.../default from /var/www to home/user/www but now i haveForbiddenYou don't have permission to access / on this server.

View 3 Replies View Related

Ubuntu Servers :: How To Set Apache File Permissions

Jun 30, 2011

What is recommended way to set permissions of folders VAR/WWW for use with apache in 11.04? I would like to let the user "ABC" have access to read/write the website files in this directory. How should permissions on these files be set?

View 2 Replies View Related

CentOS 5 Server :: Stop Apache Logs (access/error/ssl) From Being Deleted?

Apr 22, 2009

I don't mind that apache logs "rotate". By that, I mean that periodically the most recent log is renamed "*.1" and the older logs are bumped up a number In my particular situation, I do mind that the log that was "*.4" is deleted rather than being renamed to "*.5" when that periodic renaming happens.

I know most of the other /var/log files have the same behavior. What does this? Can I change it so my apache logs are "rotated" up but aren't deleted? I know this will take some hard drive space, but I have a lot of it.

EDIT: CentOS 5.3, kernel 2.6.18-128.1.6.el5, Apache 2.2.3

View 1 Replies View Related

General :: Apache Access Log File Recommended Size Limit

Jan 17, 2011

Based on some web reference, apache access log file size increased more than 2Gb. It will effect apache performances. Is this correct?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved