Apche 2.4 on ubutnu 14.04

nitin chandra nitinchandra1 at gmail.com
Sun Jun 26 17:49:33 UTC 2016


This is from my /var/log/apache2/error.log

[Sun Jun 26 22:39:14.505067 2016] [core:notice] [pid 8813:tid
139847888967552] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jun 26 23:14:34.651144 2016] [mpm_event:notice] [pid 8813:tid
139847888967552] AH00491: caught SIGTERM, shutting down
[Sun Jun 26 23:14:35.747769 2016] [mpm_event:notice] [pid 9547:tid
140224353621888] AH00489: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9
mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun Jun 26 23:14:35.747954 2016] [core:notice] [pid 9547:tid
140224353621888] AH00094: Command line: '/usr/sbin/apache2'


Same result in the Opera/ FireFox/Chrome


etc/hosts is from server ... not ok / Ok ??

ALso changed

>     .
> </VirtualHost>
>
> passtms.in.conf
>
> <VirtualHost passtms.in:80>
>

Still no change.


On 26 June 2016 at 23:08, Alejandro Visiedo GarcĂ­a
<alejandro.visiedo at gmail.com> wrote:
> What can you see in the logs of apache when you make the request by ip or name??
>
> Any difference??? Is it happening in all browsers???
>
> The '/etc/hosts' file, I'm supposing is what is in the machine of the browser, isn't it?? Not the file in the server!
>
> Looking at the configuration, why don't you try to change in the tag virtual host, the ip by the name of the virtual host??? I thing it is used to match which vh will serve the request using the 'host' header in the request!
>
> Regards!
>
>> On 26 Jun 2016, at 18:18, nitin chandra <nitinchandra1 at gmail.com> wrote:
>>
>> Hi All,
>>
>> I am trying to configure my apache 2.4 for past 3-4 months, but due to
>> work commitments am unable to put in full time in trouble shooting.
>>
>> Issue : Web page does not refresh with new edit.
>>
>> original 'index.html' : vimal2 (shows ALWAYS this on browser)
>>
>> modified 'index.html' : 'vimal   3' (without quotes and does NOT show this
>>                                                     modification)
>> browser : 13x.2xx.91.2xx   -- works
>>                passtms.in          -- does not work
>>
>> -----------------------------------------
>> my etc/hosts file :
>>
>> 127.0.0.1 localhost.localdomain localhost
>> 13x.2xx.91.2xx passtms.in
>> 13x.2xx.91.2xx www.passtms.in
>>
>> -----------------------------------------------
>>
>> my apache2.conf (for brevity removed commented lines)
>>
>> #ServerRoot "/etc/apache2"
>>
>> Mutex file:${APACHE_LOCK_DIR} default
>>
>> PidFile ${APACHE_PID_FILE}
>>
>> Timeout 300
>>
>> KeepAlive On
>>
>> MaxKeepAliveRequests 100
>>
>> KeepAliveTimeout 5
>>
>> User ${APACHE_RUN_USER}
>> Group ${APACHE_RUN_GROUP}
>>
>> HostnameLookups Off
>>
>> ErrorLog ${APACHE_LOG_DIR}/error.log
>>
>> LogLevel warn
>>
>> IncludeOptional mods-enabled/*.load
>> IncludeOptional mods-enabled/*.conf
>>
>> Include ports.conf
>>
>> <Directory />
>> Options FollowSymLinks
>> AllowOverride None
>> Require all denied
>> </Directory>
>>
>> <Directory /usr/share>
>> AllowOverride None
>> Require all granted
>> </Directory>
>>
>> #<Directory /var/www/>
>> <Directory /home/>
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> Require all granted
>> </Directory>
>>
>> #<Directory /srv/>
>> # Options Indexes FollowSymLinks
>> # AllowOverride None
>> # Require all granted
>> #</Directory>
>>
>> #<Directory /home/vimal/public_html/passtms/>
>> # Options Indexes FollowSymLinks
>> # AllowOverride None
>> # Require all granted
>> #</Directory>
>>
>> AccessFileName .htaccess
>>
>> <FilesMatch "^\.ht">
>> Require all denied
>> </FilesMatch>
>>
>> LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\"
>> \"%{User-Agent}i\"" vhost_combined
>> LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\"
>> \"%{User-Agent}i\"" combined
>> LogFormat "%h %l %u %t \"%r\" %>s %O" common
>> LogFormat "%{Referer}i -> %U" referer
>> LogFormat "%{User-agent}i" agent
>>
>> IncludeOptional conf-enabled/*.conf
>>
>> IncludeOptional sites-enabled/*.conf
>>
>> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
>>
>> # adding server Name
>> ServerName 13x.2xx.91.2xx
>>
>> ---------------------------------------------------------------
>> My virtual hosts (one Ip : multiple sites)
>>
>> /etc/apache2/sites-available # ls
>> 000-default.conf  000-default.conf~  default-ssl.conf
>> default-ssl.conf~  passtms.in.conf
>>
>> 000-default.conf
>>
>> <VirtualHost *:80>
>>    .
>>    .
>>    .
>>     ServerAdmin webmaster at localhost
>>     # DocumentRoot /var/www/html
>>     DocumentRoot /home/
>>     .
>>     .
>> </VirtualHost>
>>
>> passtms.in.conf
>>
>> <VirtualHost 13x.2xx.91.2xx:80>
>>
>>  ServerName  passtms.in
>>  ServerAlias www.passtms.in
>>
>>  DirectoryIndex index.html index.htm index.cgi
>>  DocumentRoot /home/vimal/public_html/passtms
>>
>>  ScriptAlias "/cgi-bin/" "/home/vimal/public_html/passtms/cgi-bin/"
>>  <Directory "/home/vimal/public_html/passtms/cgi-bin/">
>>        Options +ExecCGI +Indexes +FollowSymLinks
>>        AddHandler cgi-script .cgi .py
>>        AllowOverride All
>>        Order allow,deny
>>        Allow from all
>>        Require all granted
>>  </Directory>
>>
>>   LogLevel warn
>>  ErrorLog /home/vimal/public_html/passtms/log/error-passtms.com.log
>>  CustomLog /home/vimal/public_html/passtms/log/access-passtms.com.log combined
>>
>> </VirtualHost>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list