Apche 2.4 on ubutnu 14.04

nitin chandra nitinchandra1 at gmail.com
Sun Jun 26 17:18:51 UTC 2016


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>




More information about the ubuntu-users mailing list