Apache :: Configure A Host To Use Vhosts But Server Keeps Breaking

Aug 29, 2013

I'm trying to configure a host to use vhosts but the server keeps breaking when I uncomment the Include vhosts file line. The apache process starts but none of the hostnames work. When the line is commented out, only the main hostname (defined in httpd.conf) works.

View 1 Replies


ADVERTISEMENT

How To Configure Apache Logs For Virtual Host (copy Log File To Homedir Of User )

Jul 19, 2014

I'm trying to configure Apache logs to split logs files for every virtual host on the server

for example: {site1 .com} => copy access_log to /home/site1/public_html/logs {site2 .com} => copy access_log to /home/site2/public_html/logs .. {site3 .com} => copy access_log to /home/site3/public_html/logs

i want to also to make sure is the logs files updated in the real time

operating system is CentOs6, with Apache and cPanel

View 1 Replies View Related

Apache On OSX Is Adding PHP Extension Within URL - Breaking Mod Rewrite

Sep 23, 2013

I am setting up my work environment on OSX (a new macbook), and my previous setup is a Windows 7 PC. I've found that mod_rewrite is no longer working, and have found some clues why:

Typically, I want to take [URL] ....

which by mod_rewrite will get turned into [URL] ....

so far so good, and this works fine on the Windows PC.

However, I believe Apache on my macbook has something configured differently, as since it knows about the file catalog.php, it appears to update [URL] ....

BEFORE the mod_rewrite happens. Hence the mod_rewrite fails.

I am basing this on having enabled RewriteLog in httpd.conf.

Found the fix. Per stackOverflow - turns out adding the following to the .htaccess file:

Options -MultiViews stops this behavior.

Source: [URL] ....

View 1 Replies View Related

Plesk 12.x / Linux :: Unable To Configure Web Server On Host XXX

Jul 13, 2014

I'm getting this error ....

Code: Unable to generate the web server configuration file on the host <xxx> because of the following errors:

Template_Exception: apache2: bad user name <username>

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0

Please resolve the errors in web server configuration templates and generate the file again.

<username> once was a user existing on the server. But I removed the user some days ago.

Since this morning I cannot reconfigure my web server. This always stops with the error message from above.

Unfortunately there is no clue, where the error could be located. The Abstract.php is crypted, so I am not able to check the where the problem is...

View 4 Replies View Related

Apache VHosts Error

Nov 13, 2007

I've been having some trouble with Apache 2.0 recently. Whenever I load somewhere between 200 and 230 virtual hosts into Apache's config (as per my hosting control panel), Apache will fail to restart when the command "apache2ctl restart" is run. The command "/etc/init.d/apache2 restart" fails as well. All it does is signal all child processes of Apache to be terminated and fail to start again.

Here's what the log has to say:

Code:
[Tue Nov 13 19:04:18 2007] [notice] SIGHUP received. Attempting to restart
[Tue Nov 13 19:04:18 2007] [notice] seg fault or similar nasty error detected in the parent process
Is it that Apache is too bloated with vhosts to restart or is it something else?

FYI, I'm running Debian 3.1 (Sarge).

View 10 Replies View Related

Apache 2.2 Can't Handle Vhosts

Mar 25, 2007

Either Apache 2.2 can't handle vhosts or I don't get apache anymore.

Have a look at the conf files (I stripped out all the commented lines):
httpd.conf

Code:
ServerRoot "/usr/local/apache2"

Listen 80

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module modules/libphp5.so

<IfModule !mpm_netware_module>
User apache
Group apache
</IfModule>

ServerAdmin you@example.com

DocumentRoot "/usr/local/apache2/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

<FilesMatch "^.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog logs/error_log

LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>

CustomLog logs/access_log common
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
</IfModule>

Include conf/extra/httpd-vhosts.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
httpd-vhosts.conf

Code:
NameVirtualHost *:80

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin cs@reflexnetworks.net
DocumentRoot /home/reflextest/public_html
<Directory "/home/reflextest/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName test.reflexnetworks.net
ServerAlias www.test.reflexnetworks.net
ErrorLog logs/test.reflexnetworks.net-error_log
CustomLog logs/test.reflexnetworks.net-access_log common
</VirtualHost>
( xxx.xxx.xxx.xxx is the correct IP). The <Directory "/home/reflextest/public_html">...</Directory> part does not make any difference

Permissions:
Code:
ls -lR reflextest/
reflextest/:
total 4
drwxr-xr-x 2 reflextest apache 4096 Mar 25 04:50 public_html

reflextest/public_html:
total 4
-rw-r--r-- 1 reflextest apache 22 Mar 25 04:50 index.html
This is a source compile of apache. See for yourself: [url]

View 4 Replies View Related

Apache: Load Vhosts From MySQL Database

Jun 21, 2008

if it was possible to load vhosts from a MySQL database and the only solutions i found didnt work for me. Im running Apache on Windows. Has anyone seen anything that would work with Windows? The only alternative i can think of is to read the database info using PHP and output it to a vhosts config file. I dont want to do that though because it means restarting the server to load the new config and i hear that a lot of vhosts slows the server down

View 4 Replies View Related

Apache :: Setting Up Vhosts In Conf File

Mar 15, 2013

I work for a start up as well as do independent consulting. I had a friend set up my apache server initially for the start up. It's been running fine. Now I want to host a client's site on the same server. I tired just adding a vhost section at the bottom of the conf file, but it said that I was running two sites off the same port. I tried manipulating the stuff my buddy did for me for the first site, then putting two vhosts on the bottom, but that just didn't work.

View 5 Replies View Related

Apache :: Times Out When Multiple Vhosts Are In Place

Apr 21, 2015

when I had multiple (at least 5) vhosts set to Apache when it just hanged, this was fixed adding:

Code:
Acceptfilter http none
Acceptfilter https none

To my httpd.conf, but now it's not hanging, it just times out, I get no error, nothing in the error.log file, it just times out.

After doing a refresh, it comes back like nothing happened.

View 13 Replies View Related

Configure Apache Web Server To Use 2 Certificates?

Jun 18, 2013

I have a magento based ecommerce website. In have to integrate a payment method which requires a certificated delivered from a specific certification authority not recognized by browsers. Then I have to use 2 diffrent certificates, one for the payment and the other for the remaining secure operations. Is it configurable in apache?

View 6 Replies View Related

Apache :: Configure And Implement Server With Ssl Using Ldap For Authentication

Apr 28, 2015

I have a class project that we are working on where we have to configure and implement an Apache server with ssl using ldap for authentication. I have documentation of literally everything I have done in the configuration. Everything seems to be fine with the config that I can tell. The client gets a prompt for username and password when they access the server ip address. However, once the correct username and password are entered, then the client receives a 500 internal server error message instead of the webpage: "Internal Server Error...The server encountered an internal error or misconfiguration and was unable to complete your request.

View 1 Replies View Related

Configure Apache To Send SSL Client Certificate To Backend Server

Dec 31, 2013

i want to configure Apache so that it receives a client certificate, an passes it to another server.I'm using:

- apache 2.0.65 on windows
- the backend server is an apache-based solution (IBM HTTP Server)

I tried this config:

<VirtualHost *:443>ServerName apacheserver.domain.comSSLEngine onSSLProxyEngine onSSLCertificateFile "e:/Apache/Apache2/conf/server.cer"SSLCertificateKeyFile "e:/Apache/Apache2/conf/server.key"SSLCACertificateFile "e:/Apache/Apache2/conf/certca.cer"SSLVerifyClient requireSSLVerifyDepth 2ProxyPreserveHost onProxyRequests off<Proxy *>AddDefaultCharset

[code]....

View 1 Replies View Related

How Do I Configure Multiple FTP Sites On IIS 6 That Uses Host Header Names

Jan 31, 2007

I have been tasked with setting up IIS6 to run 10 different sites. We will be using the Host Header Names approach as I do not have 10 IP addresses. I want to allow clients to upload/download to their site via FTP. My IIS6 books have examples of how to setup separate FTP sites for individual IP addresses, how do I accomplish this when using Host Headers? I just need to be pointed in the right direction.

View 2 Replies View Related

How Do I Configure Dedicated IP's On Virtual Machines Running On A CentOS5 Host

May 24, 2009

How do I configure dedicated IP's on Virtual Machines running on a CentOS5 Host?

I installed VMWare Server 2 almost without a problem using no GUI, I now have the web interface for the VMWS2 and any machine I create and run on it seems to do so without a problem.

The thing is, I can't connect or know how to configure this virtual network so I end up using 2 dedicated IPs on the Virtual Machine.

View 8 Replies View Related

Site5, We're Breaking Up With You

Oct 27, 2008

I have finally pulled the plug on Site5. Many of you know that they were in the process of migrating many of their older servers to hosting at ThePlanet. We got a notice on Sept 25 that ours was supposed to happen the week of Sept 29-Oct 3 (didn't happen!) and that ". One of the chat girls let it slip that we were migrated on Oct 10...(we weren't notified of our new IP!). As our old server "xxxxx.site5.com" was up and running, we didn't know of any trouble, and ran happily along with our site, updating databases, maintaining code, etc. Then they flipped the switch today on our old server. We were pretty much messed up for Friday afternoon through the weekend while we waited for them to finish their maintenance. The support guys who came in Monday A.M. tried to help, and explained that (unfortunately) both the new and the old servers had problems. I should say that they DID help. But it was too little too late.

Needless to say, I decided we'd had enough, as this was not our first issue with not getting support when we needed it...we migrated on Friday afternoon.
If you are looking for a good provider, search elsewhere, I'll be posting more info about where we went.

Site5 support is inadequate for the following reasons:

-support is only accessible by email or web form submission

-usually takes hours for a real person to respond even when subject includes the word "DOWN"

-customer is not able to escalate an issue, priority is at the whim of the responding technician.

I suggested some improvements to Brendan Diaz, CEO at Site5 after our last major ordeal in January. I think that they need to rethink and overhaul their support structure before they add any more clients to business hosting.

Good bye Site5, sorry it didn't work out.

View 14 Replies View Related

Where Can I Find How To Configure Apache

May 31, 2009

Where can I find how to configure apache for web hosting correctly?

View 7 Replies View Related

Configure Web Logs In Apache

Apr 26, 2008

I use linux server with Cpanel control panel.

default default apache logs folder is in /usr/local/apache/logs/error_log

I want to monitor errors . How can I have an error log file for each individual domain?

View 3 Replies View Related

Apache :: Cannot Configure To Work With PHP

Aug 7, 2014

(I am using apache 2.2.25).I have this "HTML5 and CSS all in one for dummies" Book. And it tells me I have to configure the .conf file to make apache work with PHP.

At this point I have only edited the Document root folder. The book tells me to find a Loadmodule with an # with a mention of PHP (I'll put the text of the book at the end) and to add an "addtype" statement. If have found neither and when I add the manually the server doesnt work.how can I make PHP work? Also, I have noticed that the Apache commands in CMD don't work. I am running windows 8.1. URL....

View 1 Replies View Related

Test Apache Configure

Oct 11, 2013

I'm working on a script to automatically install apache. Now, after the apache configure/make/make install I need to test for a successful completion. I checked the configure options but there is no flag for an unsuccessful finish.I would like to know if there is any other way than to test the command output for a successful or unsuccessful ending? I'm saving the output on a file and then grepping for an expected line. For example "creating test/ Makefile" for the configure.

View 2 Replies View Related

Common ./configure Parameters For Apache And PHP

Oct 28, 2007

What are the ./configure parameters commonly used for Apache (2.2) and PHP (5.2) installations on web hosting servers?

View 5 Replies View Related

Apache :: 2.4 - How To Configure Multiple Clusters

May 2, 2013

I wanted to configure 2 clusters on Apache 2.4. Here are my sample configurations

Cluster 1 config:
----------------

<VirtualHost *:80>
ServerName mywebsite1.com
<IfModule mod_proxy_balancer.c>
<Proxy balancer://sgcluster>
BalancerMember http://IPaddress1:80/ loadfactor=1
BalancerMember http://IPaddress2:80/ loadfactor=2
ProxySet lbmethod=byrequests

[Code] ....

I've included both configuration file in httpd.conf. I'm getting the errors, when I tried to start up the apache.

[Thu May 02 11:01:34.243583 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(448): AH02301: attach looking for /opt/apache2/logs/slo
tmem-shm-mod_heartmonitor.shm
[Thu May 02 11:01:34.243667 2013] [lbmethod_heartbeat:notice] [pid 9240606:tid 1] AH02282: No slotmem from mod_heartmonitor

[Code] .....

View 2 Replies View Related

Apache :: How To Benchmark And Configure FCGI

May 23, 2015

how to benchmark and configure FCGI.

View 4 Replies View Related

Apache :: VirtualHost - Configure Subdomains?

Jan 14, 2013

I have substituted the domain names and DocumentRoot folders for generic titles, so I will refer to those where applicable in the thread as well.

Here is my httpd-vhosts.conf:

<VirtualHost *:80>
DocumentRoot "C:WebServerwww"
</VirtualHost>
<VirtualHost *:80>

[Code] ....

View 1 Replies View Related

Record Breaking Downtime By Newista (Some Logic Inc)

Aug 1, 2007

Its now 8 days and Newista (Some Logic Inc) is neither providing any support nor ending downtime of my sites.

Tickets submitted but no reply at all.

Is there any alive representative of above sucked web hosting company to answer ?

Newista -[url]
Some Logic - [url]

View 6 Replies View Related

Apache :: Windows - How To Configure 1 Process Per Client

Sep 19, 2014

I've got a quite difficult problem which I don't know hoe to solve. We use a self created ISAPI module which is a "business server" running behind an Apache.

From time to time a client app crashes the server (the circumstances are not quite clear) - and because there is only one server process, all other clients crash as well. Here is an exemplary log of a crash:

Faulting application name: httpd.exe, version: 2.2.22.0, time stamp: 0x4f242d7a
Faulting module name: ABCServer.dll, version: 1.0.0.1, time stamp: 0x53cfffa5
Exception code: 0xc00000fd
Fault offset: 0x00004cf6
Faulting process id: 0x94c
Faulting application start time: 0x01cfc5cc18c67d57
Faulting application path: C:Program Files (x86)Apache Software FoundationApache2.2inhttpd.exe
Faulting module path: C:datawwwabcremoteABCServer.dll
Report Id: d27d5891-31da-11e4-93ff-0003ff4356f9
Faulting package full name:
Faulting package-relative application ID:

Exception code: 0xc00000fd means stack overflow as I learnt. Therefore we configured mpm_winnt_module to use a 8M ThreadStackSize but this didn't work.

A solution might be that Apache starts for every client its own server process with the module ABCServer.dll. Because it is quite small and there are not thousands of customers this sounds like the perfect solution. No other clients/customers would be affected by a crash.

Unfortunately mpm_winnt_module supports only 1 process AFAIK. Worker and Prefork MPM are not available in Apache's Windows version what I read.

How can we configure Apache to start a new module process per client?

View 3 Replies View Related

Apache :: Cannot Configure Wordpress File In Wamp

Jan 21, 2014

I have installed wamp for editing word press theme every thing is ok but when I create new data base and start configuring my wordpress project file optional message appear when I click submit what should I do ?

View 4 Replies View Related

Configure Plesk That Apache Listen To Other Ports?

Oct 15, 2014

I have a SSL certificate for my website. I add the certificate to plesk and now I want use the certificate for diffrent ports.If I run only apache without plesk I need to add the ports to the apache conf where it listening too.At the moment apache listen only on port 844. But I want add 8443 too, how I do it in plesk?

View 4 Replies View Related

Apache :: Migrating Server / Host

Apr 4, 2014

Our business website [URL] .... needs to switch hosts and I am researching exactly what I will need to keep in mind for doing so.

Current host: hostonfiber.com (managed)

Migrating to: GoDaddy (managed, Dedicated linux based server)
OS: Linux CentOS 64-BitCPU: Intel® Core™ i5 - 4 coresRAM: 8 GBStorage: 2 x 1 TB hard drivesBandwidth: 10 TB per month

I have never switched servers before and would like to make certain there are no issues or downtime with the migration process.

Before I get started I am looking to compile a comprehensive checklist or order of operations so to speak, things I will need to keep in mind, technical info I will need to gather and processes I will need to fulfill in order to make certain the website functions as it should for all applications.

View 4 Replies View Related







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