Fedora :: How To Use The 14 Hostname In The URL Of The Apache Server
Apr 6, 2011
I started the mission to call my GLPI system from a hostname URL... i dont want use the IP address... but im dont know what i do!
I have Fedora 14 installed on VirtualBox running with the network interface bridge mode, fix IP address and in the dns server the name that i want is already registered... i have direct access to the network and the apache and mysql works fine... and here in my office we have a windows 2K3 domain controller and all the computers are logged in the domain... i dont know if i have to put the fedora linux in the domain or just configure something to work...
Today for use the glpi system i have to put in the URL bar: [url]
But i want: [url]
I allready look for the samba configuration to put fedora into domain, but dont works...
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:)
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].
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.
I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.
first, system info: monitored server: CentOS 5.3 2.6.18-128.1.1.el5
I installed apache server on my Fedora 12. Its showing the test page 127.0.0.1, but when I give the address 184.108.40.206 (0r www.chaalu-kam.com), it tells that the requested url could not be retrieved.
I have made the following additions to the /etc/httpd/conf/httpd.conf file
In addition to this, I have added this to my /etc/hosts file
I wanted to test the Apache server on my laptop only by putting an html file in /var/www/html and naming it as index.html. I want this index.html page to be displayed when I put www.chaalu-kam.com in my browser. What should I do? My firewall is off too
I have a network of 2 WinXP machines and one linux box. I have fiddled around with the settings as you do when learning. The network is working. The network neighbourhood on the WinXP machines recognise the linux box and vice versa, (the linux Places|Network recognises the 2 WinXP). I can Ping the linux box using its hostname from a WinXp. But I cannot do the reverse. I get an 'unknown host' response. I can ping the linux to itself using its hostname.
I'm having an issue on two Fedora Core 13 machines where I can ping others by hostname, but the hostname resolution fails whenever I use ssh/scp/vnc/etc. I can still do these things by IP address, just not by hostname. RHEL5.3 machines on the same network with the same configuration do not seem to have this problem.
Here's the not-so-quick-and-dirty description of the situation:
I know that there is a virtual router at 192.168.31.1 and another at 192.168.30.1. I also know that there is another network (let's call it 220.127.116.11) and on that network lies a number of resources. By nature of this configuration, any machine on 18.104.22.168 can be accessed by any 192.168.x.x, but not the other way around. Beyond that is out of my hands and currently out of my scope of knowledge.
I have a dnsmasq server on 22.214.171.124 that operates as a secondary nameserver, another machine out of my sphere of influence is the primary nameserver (126.96.36.199).
The secondary nameserver on 188.8.131.52 holds the hostnames of our development machines. The problem is that in some cases, while I can ping by hostname all day long, services such as ssh, scp, vncviewer, etc all fail to resolve the hostname. In other cases I can do all of these things.
Every machine has an equivalent resolv.conf:
As an example, I will show the output of a handful of my development machines:
I also included columbia as a one-way test -- even though it cannot access 30.x or 31.x, they can access it:
columbia -- physical machine, Red Hat Enterprise 5.3, IP 192.168.100.200
Okay, so here are the various outputs. Remember, nibbler, discovery, and atlantis can ALL: - Ping by IP address - Ping by hostname - ssh, scp, vnc, etc by IP addess
Additionally, the SERVFAIL reply from 184.108.40.206 is expected since my dnsmasq server is on the secondary server.
Note that the only machine that can both ping and ssh/scp/etc by hostname is nibbler, which also happens to be the only one of the three running RHEL5.3 instead of FC13. Other virtual and physical machines running on the 192.168.31.0 and 192.168.30.0 networks (all running RHEL5.3) work just like nibbler does. So the problem seems to only affect machines running FC13.
Final note: selinux is disabled, iptables is disabled, ip6tables is disabled.
Other than that, discovery is a brand-spanking-new install straight off of the FC13 DVD. atlantis has been around longer, but its just a file server so I haven't done anything too crazy to it.
I'm trying to ping another Ubuntu computer on my local network. If I try doing,ping <hostname>then I get the messageping: unknown host <hostname>however, if I doping <hostname>.localthen I get a response back. I was wondering how I can change it so that I can ping without having to append .localI've installed winbind and modified my /etc/nsswitch.conf file but this has made no difference.
I have an ubuntu 10.04 server with hostname "abc.domain.com". However, due to migration, we had to change to hostname to something else, "xyz".
I have done changing /etc/hosts and /etc/hostname and run /etc/init.d/hostname start.
Checking the hostname and all shows it is now using hostsname of xyz. However, email sending out is still using old hostname. We have some scripts that will send out alerts like failed rsync or hdd space full to my email account. But I see the sender is still "firstname.lastname@example.org".
How do change that to xyz? I am using postfix. I have edited main.cf and restarted postfix but no go.
I am upgrading my server and I have a lot of sites. Since I cannot take my server down for a few days, maybe a week until I manage to migrate all the sites to the new machine, I figured I could migrate them one by one. After migrating one, I would somehow tunnel the requests of that name virtual host to my internal machine. When everything is migrated, I would then switch the machines, update ip's and stuff and everything will work just fine.
However I cannot seem to find a way to do this tunneling. is this at all possible? If not, what alternatives do I have?
I have to go through an ERP projects. "README" file to setup the software gives following instruction which I have attached with this thread.So, according to first step I copied the entire "dolibarr-2.6.1" folder in "/usr/local/apache2". But whenever I call the browser with address given in "README" file my browser gives the following error message : Code: Firefox can't establish a connection to the server at localhost.Please let me know how can I configure the Web Server so that I can use the software.
I have apatchi (httpd) installed on Fedora, and I am trying to configure the virual server. I have two websites: [URL] and [URL] and the machine has one public IP address. The problem that:
It always returning the default virual host (even if we typed in the url: [URL] or [URL]), it returns the default configured one (which is the first configured virual host). I have one public address on my machine, and my configuration as following:
Actually [URL] is the one which is used for the global configuration.
I am having a problem getting Apache to serve out a directory. If I place an index.html in the Document.Root I can see that page. When I remove the index.html I only see the test page for Apache. the relevant section form my httpd.conf. I am not using virtual hosts just setting up one Apache instance.
As you can see from the below I have enabled Indexes so I am at a loss :-(
ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 120 KeepAlive Off MaxKeepAliveRequests 100
I want to change the DocumentRoot on my Apache httpd server.
I have Changed it from the default to var/www/projects
but its not working.
[CODE] ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files.
I have a problem with running Apache web server. I think my problem is either I can not get httpd to load automatically or it's being blocked from external unless I'm logged in, don't know which. Or, I'm completely off base. Either way, being logged in solves the problem. Now I just need to fix it. This is a brand new server running latest apache and fedora 10 (all fully patched). Loaded from source to all default (non RPM directories - apache is /usr/local/apache2/... )
I modified the existing /etc/init.d/httpd script and had it point to the /usr/local/apache2 areas.I even did a chkconfig --add httpd and show it is on for run levels 2345.The problem is that when I reboot the server httpd does not load because I can not access the website.However, the minute I login to the server as a user (non-root) it automatically loads httpd and the website works.Then, when I logout, everything is inaccessible again. I even tried to put the commands in the /etc/rc.local script (or wherever it is).Same thing happens.I know this is a simple fix. Just don't know what it is. Is it related to SElinux? However, wouldn't SElinux create access problems regardless of being logged in or not? Once I'm logged in, everything automatically fixes itself (either it's a service load or a rights filter fix).
Remember, everything works perfectly as long as I'm logged in to the server (even as a non-root user). Just the act of logging in makes the web server accessible from to the rest of the world. However, when I logout, the web server is inaccessible.
I am new to Linux. I installed some weeks ago Fedora 14 via burnt iso file downloaded from official Fedora site. It was working perfectly like a charm for me until yesterday when I tried to install zend server for PHP. During my first try of installation of zend server it corrupted out my apache server and I lost apache on http://localhost. I removed all "zend-server" like stuff from "Add Remove Software" screen. Installed again apache 2 in the form of LAMP (Linux Apache Mysql Php) via terminal. Apache installed correctly and started workeing again ok on localhost. Then again I tried to install zend server from install.sh file in downloaded zend server installation. It showed me after a while like "zend server installed successfully".
I shut down my pc thinking everything is ok now. Today when I started my system, it shows me boot screen of Fedora, I select fedora and then it shows me balloon filling up for around 5-7 secs. Then all of a sudden a black screen appears up with a cursor blinking at its top left and then nothing else happens further. I cannot find login screen to my desktop anymore. I remember one thing that during reinstallation of apache from terminal, I set following command like "chkconfig --level 235 httpd" (I guess that's what I have written as per some online tutorial for LAMP). Is that cause of mine problem ot its something else?
I have set up an Ubuntu 10.10 server with SAMBA shares and Apache web server. Everything was working fine. Then there was a power failure and after I restarted the server the XP pc's can see the server using the hostname. They can only see it using the ip adress. I haven't change anything on server or client side. Just the restart of the server.
I have read a lot of documentation but it is still hard to find a proper answer to my doubts.About the hostnames in a domain, how is it associate to a determinated port?
For example, when I type on the browser webmail.sparc86.net and then I get redirected to the port of 20000 of this same domain. Fine, but how does it work that it knows it should be redirected to the port 20000? From where is this information (the association webmail-port 20000) taken? The apache will manage this, right? But what about other services like ftp?Another example, If I wrote my own software listening, let's say on the port 40000 and I want to have a domain like "mystuff.sparc86.net" how would I let it be redirected to the port 40000 ?
I'm running an Apache web server version 2.2.11 on Fedora 10. I'm trying to get it to run a PERL cgi script but with only partial success. The script uses the PERL cgi package.
The perl script is a simple test case that creates a form to fill in. Once the submit button has been clicked it should then return the data submitted. The perl script writes this to a file called output.cgi
The intial script located in /var/www/cgi-bin/index.cgi gets executed fine when I go to [URL], this works with no probs. However once I hit the button to submit the data I then get the error
The requested URL /cgi-bin/output.cgi was not found on this server. Apache/2.2.11 (Fedora) Server at localhost Port 80 Im not sure if its a perl problem or server setup problem, theres probably a simple switch or something but Im out of ideas at the moment.