Anyone have any questions about configuring Apache directly in the .conf file?
posted by:
|
|
Unsubscribed |
-
Unsu...
Re: httpd.conf issues
Wed, September 17, 2003 - 3:53 PMI'd like to be able to setup my webserver using VirtualHosts, but can't seem to get it working.
The domains I host are forwarded via the NameSecure.com and RegisterFly.com URL forwarding functions, and they just pass on the request to my IP address.
My example (/etc/httpd/conf/vhosts/Vhosts.conf)
NameVirtualHost ###.###.###.###
ServerName www.mydomain1.com
ServerAlias mydomain1.com
DocumentRoot /var/www/html/domain1
ServerName www.mydomain2.com
ServerAlias mydomain2.com
DocumentRoot /var/www/html/domain2
Any thoughts? -
-
Unsu...
Re: httpd.conf issues
Wed, September 17, 2003 - 3:55 PMWoops, my post removed my VirtualHost tags!
-
Unsu...
Re: httpd.conf issues
Wed, September 17, 2003 - 11:04 PMHi, Paul.
I host some virtual hosts on my server. I'm running apache 2 on Linux, and I have my virtual hosts directives directly inside my httpd.conf file. I call things like SSL and PHP configs from conf.d, but most config is directly in my httpd.conf. I had a problem setting up my virtual hosts until I declared some ports in key places. I have some questions before we continue. What version of apache are you running, on what platform, and using what method of configuration? Are you just editing by hand, or are you using a command line config tool, or maybe a gui based tool? I'll give more specifics of how I have my config setup next,and I have a question for the tribe about my config after that. -
-
Unsu...
Re: httpd.conf issues
Thu, September 18, 2003 - 5:17 AMI'm running Mandrake Linux 9.1 (2.4.21-0.13) and Apache 2.0.4.7
I'm editing my config files by hand using "vi".
I'm running about 5 domains here and for things to work I have the URL forwarding to goto my IP/directory, but I'd rather have them all just point to my IP and let the virtual host setup take care of the rest.
Thanks
-
Unsu...
Re: httpd.conf issues
Wed, September 24, 2003 - 4:37 AMI've solved my issue!
The problem was the IP address I was using for the VirtualHost. Once I changed it to the IP of that computer rather than the IP assigned to me by my ISP everthing worked great.
Thanks. -
-
Unsu...
Re: httpd.conf issues
Thu, September 25, 2003 - 2:09 PMsorry about the slow reply. Glad to hear it's working now.
-
-
-
VirtualDocumentRoot
Wed, June 23, 2004 - 8:48 AMFinally got virtual hosting working well. Using VirtualDocumentRoot, VirtualScriptAlias, and directories whose names are the domains served, is far easier than listing each domain in httpd.conf, as well as the only way I've found to host multiple domains on the same dynamic IP. I missed this technique through a couple of reads of the manual because it takes so little space to describe and most of the section is devoted to explaining the older methods of manually configuring each site.
-
-
Re: httpd.conf issues
Mon, December 29, 2003 - 12:18 PMI have been discussing apache optimization with a former coworker. When we took over the server conf, we found the MaxClients at 4096. To prevent ugly accumulations of apache processes when the app server slows down, we reduced the Timeout from 300 to 30. That was a while ago.
Now, for the pure joy of messing with something that mostly works, we're looking at the KeepAlive settings (currently at the apache defaults) and other settings.
Is there a resource which discusses the apache server in the same way that a mechanical engineer would discuss the controls for a complex system such as a steam engine or factory? I am looking for something along the lines of this pdf (but examines how all the settings affect performance, not just MaxClients):
www.inf.ufpr.br/~cristina/...iwqos03.pdf
- JML
